github_activities 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41cc043553233e995be600aff088b1f5c75fb40b
4
- data.tar.gz: 93da24a56814334943e7a12b08babb9e79160e40
3
+ metadata.gz: 87c436975dbfddcb738fafada743f6d698eecf73
4
+ data.tar.gz: 73ccfc952a67b6ece41bff612bc3a83b1672e7ce
5
5
  SHA512:
6
- metadata.gz: 7b15b522b2a5d9206ebfcbe9156734fc8fa37dda7ba208054ee33304d6a9cd3eed857640dc040a2d56430e13b65612e110c03d8132287ef64c6bd66f7e1cff16
7
- data.tar.gz: 464e29ab0fb45c7ccddf51e6606e75391d30a1d9c50402c5c0f2eeab9c8eac9431f2eb4dbfdd4e2223857fba07f2db3b44783396f974c1b226a68fa6ce51292e
6
+ metadata.gz: 85a6865e3fb496eb961326b56b7ddd28c4f76aec59bf14c96222901de5c6b432d4d97de5d17b1e607137a516b61c33f3f2925e6b77381e9fba6a1dd6f9cc9864
7
+ data.tar.gz: 3748fce828352ed5b2cd85566b61dbe217d1cd433a42c8c6bec7a1e7e73506cf6149562f5188134033d13ea54a3047e3e24acd6faaac181571c5b6fe719cf953
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /vendor
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github_activities (0.1.0)
4
+ github_activities (0.2.0)
5
5
  octokit
6
6
  thor
7
7
 
@@ -31,4 +31,4 @@ DEPENDENCIES
31
31
  rake (~> 10.0)
32
32
 
33
33
  BUNDLED WITH
34
- 1.16.1
34
+ 1.16.4
Binary file
@@ -1,6 +1,7 @@
1
1
  require 'github_activities'
2
2
  require 'thor'
3
3
  require 'github_activities/comment_and_reaction'
4
+ require 'github_activities/milestones'
4
5
 
5
6
  module GithubActivities
6
7
  class Command < Thor
@@ -14,5 +15,15 @@ module GithubActivities
14
15
  hello = GithubActivities::CommentAndReaction.new
15
16
  hello.get(options)
16
17
  end
18
+
19
+ option :login_user, aliases: ['l', 'u'], required: true
20
+ option :password, aliases: 'p', required: true
21
+ option :repository, aliases: 'r', required: true
22
+ option :milestone, aliases: 'm', required: true
23
+ desc '', '特定リポジトリのマイルストーン内のすべてを返します'
24
+ def milestones
25
+ hello = GithubActivities::Milestones.new
26
+ hello.get(options)
27
+ end
17
28
  end
18
29
  end
@@ -0,0 +1,25 @@
1
+ require 'github_activities'
2
+ require 'octokit'
3
+ require 'csv'
4
+
5
+ module GithubActivities
6
+ class Milestones
7
+ def get(options)
8
+ Octokit.configure do |c|
9
+ c.login = options[:login_user]
10
+ c.password = options[:password]
11
+ end
12
+
13
+ repository = options[:repository]
14
+ milestone = options[:milestone]
15
+ client = Octokit::Client.new
16
+ list_issues = client.list_issues(repository, state: :all, milestone: milestone, accept: 'application/vnd.github.symmetra-preview+json')
17
+ CSV.open("#{milestone}.csv", 'w') do |csv|
18
+ csv << ["スプリントRv前確認", "Author", "案件概要", "プルリクエスト(修正コード)", "確認担当", "リリース判定", "備考"]
19
+ list_issues.each do |issue|
20
+ csv << ['', issue.user.login, issue.title, issue.html_url, '','','',]
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,3 +1,3 @@
1
1
  module GithubActivities
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_activities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nyaahara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-14 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,10 +84,12 @@ files:
84
84
  - bin/console
85
85
  - bin/setup
86
86
  - exe/github_activities
87
+ - github_activities-0.1.0.gem
87
88
  - github_activities.gemspec
88
89
  - lib/github_activities.rb
89
90
  - lib/github_activities/command.rb
90
91
  - lib/github_activities/comment_and_reaction.rb
92
+ - lib/github_activities/milestones.rb
91
93
  - lib/github_activities/version.rb
92
94
  homepage: https://github.com/nyaahara/github_activities
93
95
  licenses: