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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb7c65b432b3e28c576fa2224130a2d338590214abdfbbdad8968a7e73a0abc0
4
- data.tar.gz: 2482bed8567a15ff1e4d8ba275dee4660cb5003275b071c5df07c70b5d1c515b
3
+ metadata.gz: 587b8c56362302e2938510d98cbf0178313181060445999b13f7f0bbae799537
4
+ data.tar.gz: 6a9d1aaf452391f6a16f3bfc51e51f88f2570fada575f6a0b60eec1fa3c1319e
5
5
  SHA512:
6
- metadata.gz: f61a2b4cfd7aa6f23680e1a87faf67d16c4ffb2f05a22bb73a61400a442531dee8c0f1c266c4f2fbcc51f9253227489948d262501d466e27653979d17ecd2e25
7
- data.tar.gz: 1f349dcccb24b1938ebb291643c0bd7e63df2c114b6ac930362507626adf158e54162d83e3a3d76e118da2de4b404460e25a852d0473654cbda2c64aea5f7a67
6
+ metadata.gz: 579c044bf1549efab620115a82b49c527612f79a9072e896d61cc509ed882987f312061969a46db9eea56056ba50e0dc6393ce8256571b19e7da4ba33c8b051d
7
+ data.tar.gz: 689184fd5eddc34082cdf13c371cf2ea8b669e651a5928a5a3279e97c04bfe4d1a068d0191f86a46e9f746f6b7a668ecd1f8b3a352d54335a5035b7493d879d8
@@ -1,3 +1,3 @@
1
1
  module GetIssues
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-10-29 00:00:00.000000000 Z
11
+ date: 2021-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler