get_issues 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/get_issues.rb +3 -2
- data/lib/get_issues/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34661abc538a1adc4907e7eb2e312f8f2e5b6f1b7971ed424dee266ff80c3737
|
4
|
+
data.tar.gz: 63171b876881280829529ac9efe650ead817b0658f8588561c1b3c38d01c857a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3a17ffd858660f8f32b3dc6dbee700df48cec0637e1431a75d90d2346f274754b53f7455037767f38ab5d77277cedb86f97ada52a72a291af4f23fe056c5989
|
7
|
+
data.tar.gz: 108950b36ddff39ecb35c830141419803991ebaa9e38b5ad953f68118b88a5d528a20083ff2bcc65b5240fa69a608f4f5059c32f0cf33644c1e41a0c93fd8594
|
data/Gemfile.lock
CHANGED
data/lib/get_issues.rb
CHANGED
@@ -2,7 +2,7 @@ require 'json'
|
|
2
2
|
|
3
3
|
module GetIssues
|
4
4
|
class Error < StandardError; end
|
5
|
-
def self.start(prefix_url,private_token,
|
5
|
+
def self.start(prefix_url,private_token,project_name,mile_stone_title)
|
6
6
|
projects_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}"`
|
7
7
|
projects_json = JSON.parse(projects_string)
|
8
8
|
project_json = projects_json.filter{|t| t["name"]==project_name}&.first
|
@@ -11,11 +11,12 @@ module GetIssues
|
|
11
11
|
|
12
12
|
milestones_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/#{project_id}/milestones"`
|
13
13
|
milestones_json = JSON.parse(milestones_string)
|
14
|
-
mile_stone_json = milestones_json.filter{|t| t["title"]==
|
14
|
+
mile_stone_json = milestones_json.filter{|t| t["title"]==mile_stone_title}&.first
|
15
15
|
mile_stone_id = mile_stone_json["id"]
|
16
16
|
|
17
17
|
|
18
18
|
issues_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/#{project_id}/milestones/#{mile_stone_id}/issues"`
|
19
19
|
issues_json = JSON.parse(issues_string)
|
20
|
+
issues_json
|
20
21
|
end
|
21
22
|
end
|
data/lib/get_issues/version.rb
CHANGED