github_activities 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +2 -2
- data/github_activities-0.1.0.gem +0 -0
- data/lib/github_activities/command.rb +11 -0
- data/lib/github_activities/milestones.rb +25 -0
- data/lib/github_activities/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87c436975dbfddcb738fafada743f6d698eecf73
|
4
|
+
data.tar.gz: 73ccfc952a67b6ece41bff612bc3a83b1672e7ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85a6865e3fb496eb961326b56b7ddd28c4f76aec59bf14c96222901de5c6b432d4d97de5d17b1e607137a516b61c33f3f2925e6b77381e9fba6a1dd6f9cc9864
|
7
|
+
data.tar.gz: 3748fce828352ed5b2cd85566b61dbe217d1cd433a42c8c6bec7a1e7e73506cf6149562f5188134033d13ea54a3047e3e24acd6faaac181571c5b6fe719cf953
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
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
|
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.
|
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-
|
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:
|