get_issues 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/get_issues/version.rb +1 -1
- data/lib/get_issues.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 587b8c56362302e2938510d98cbf0178313181060445999b13f7f0bbae799537
|
4
|
+
data.tar.gz: 6a9d1aaf452391f6a16f3bfc51e51f88f2570fada575f6a0b60eec1fa3c1319e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 579c044bf1549efab620115a82b49c527612f79a9072e896d61cc509ed882987f312061969a46db9eea56056ba50e0dc6393ce8256571b19e7da4ba33c8b051d
|
7
|
+
data.tar.gz: 689184fd5eddc34082cdf13c371cf2ea8b669e651a5928a5a3279e97c04bfe4d1a068d0191f86a46e9f746f6b7a668ecd1f8b3a352d54335a5035b7493d879d8
|
data/lib/get_issues/version.rb
CHANGED
data/lib/get_issues.rb
CHANGED
@@ -3,10 +3,10 @@ require "spreadsheet_architect"
|
|
3
3
|
|
4
4
|
module GetIssues
|
5
5
|
class Error < StandardError; end
|
6
|
-
|
6
|
+
https://repo.scm.atyun.com.cn/api/v4/projects?sort=asc&&order_by=name&&simple=true&&per_page=1000
|
7
7
|
|
8
8
|
def self.start_group(prefix_url,private_token,group_name,mile_stone_title)
|
9
|
-
groups_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/groups"`
|
9
|
+
groups_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/groups?per_page=1000"`
|
10
10
|
groups_json = JSON.parse(groups_string)
|
11
11
|
group_json = groups_json.filter { |t| t["name"] == group_name }&.first || {}
|
12
12
|
group_id = group_json["id"]
|
@@ -14,7 +14,7 @@ module GetIssues
|
|
14
14
|
p "找不到group"
|
15
15
|
end
|
16
16
|
|
17
|
-
milestones_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/groups/#{group_id}/milestones"`
|
17
|
+
milestones_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/groups/#{group_id}/milestones?per_page=1000"`
|
18
18
|
milestones_json = JSON.parse(milestones_string)
|
19
19
|
mile_stone_json = milestones_json.filter { |t| t["title"] == mile_stone_title }&.first
|
20
20
|
mile_stone_id = mile_stone_json["id"]
|
@@ -28,14 +28,14 @@ module GetIssues
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.start_project(prefix_url, private_token, project_name, mile_stone_title)
|
31
|
-
projects_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/projects"`
|
31
|
+
projects_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/projects?sort=asc&&order_by=name&&simple=true&&per_page=1000"`
|
32
32
|
projects_json = JSON.parse(projects_string)
|
33
33
|
project_json = projects_json.filter { |t| t["name"] == project_name }&.first || {}
|
34
34
|
project_id = project_json["id"]
|
35
35
|
if project_id.nil?
|
36
36
|
p "找不到project"
|
37
37
|
end
|
38
|
-
milestones_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/projects/#{project_id}/milestones"`
|
38
|
+
milestones_string = `curl --header "PRIVATE-TOKEN: #{private_token}" "#{prefix_url}/projects/#{project_id}/milestones&&per_page=1000"`
|
39
39
|
milestones_json = JSON.parse(milestones_string)
|
40
40
|
mile_stone_json = milestones_json.filter { |t| t["title"] == mile_stone_title }&.first || {}
|
41
41
|
mile_stone_id = mile_stone_json["id"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: get_issues
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- '807715333'
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|