gitlab_quality-test_tooling 1.33.0 → 1.34.0

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: 19bea0cdd5a0f100cec11b00c6415c39f8ab637165f67171ad6edac7c33128b9
4
- data.tar.gz: 9727a96a8ca06238ae89bacdb6f3cc88b66451a6190cac8df48fc82102e7c155
3
+ metadata.gz: 6d3f45e3af6f11c3ebca5f44f3d717960c1ac20cffdc13db75a16d68c9eecfbd
4
+ data.tar.gz: 0edf629fc7f432a779141be67a231887224a78793defedad416df50b327ecbcb
5
5
  SHA512:
6
- metadata.gz: 5dfdfea69e7e2f3500b243d83489050e6d0f2a251a1657a43250206a3710c0b848bdbb38ac34e645a2ec1dc4fc19ce4df47afa21a8c038754ac76f6b606cb14f
7
- data.tar.gz: 7aa7942d0f0f86c75a2f07eea937c70c9f725b4025302778176e0fb0b9a14db41acd983d1202f86b6a59ce6f00b1c6f85ba214d86deb1a947167a57ff82ad3a4
6
+ metadata.gz: 7570cde0cd99ea0fe3148f9a8c1f9a7035c165fb0f5506623a79d3f2c3227581d6de878fd56c9a5d5f4c4bae22191d688f49355c74e4b4926b6362ef5d3f8d06
7
+ data.tar.gz: 0112df035902806c60a82433118669b43bcd9feff89fd8dc7061ee6ffcda9c53ead791c7df4c188567b2b16ee3be8880e269088f4bee944b944aa2dafb60bfef
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (1.33.0)
4
+ gitlab_quality-test_tooling (1.34.0)
5
5
  activesupport (>= 7.0, < 7.2)
6
6
  amatch (~> 0.4.1)
7
7
  gitlab (~> 4.19)
@@ -109,6 +109,10 @@ module GitlabQuality
109
109
  description: updated_description
110
110
  }
111
111
 
112
+ # We reopen closed issues to not lose any history
113
+ state_event = issue.state == 'closed' ? 'reopen' : nil
114
+ issue_attrs[:state_event] = state_event if state_event
115
+
112
116
  gitlab.edit_issue(iid: issue.iid, options: issue_attrs)
113
117
  puts " => Added a report in #{issue.web_url}!"
114
118
  end
@@ -11,7 +11,6 @@ module GitlabQuality
11
11
  attr_reader :project, :ref, :report_issue, :processed_commits
12
12
 
13
13
  TEST_PLATFORM_MAINTAINERS_SLACK_CHANNEL_ID = 'C0437FV9KBN' # test-platform-maintainers
14
- BATCH_LIMIT = 10
15
14
 
16
15
  def initialize(token:, project:, specs_file:, processor:, ref: 'master', dry_run: false)
17
16
  @specs_file = specs_file
@@ -29,7 +28,7 @@ module GitlabQuality
29
28
 
30
29
  contents['specs'].each do |spec|
31
30
  processor.create_commit(spec, self)
32
- break if processed_commits.keys.count >= BATCH_LIMIT
31
+ break if processed_commits.keys.count >= ENV.fetch('BATCH_LIMIT', 10)
33
32
  end
34
33
 
35
34
  processor.create_merge_requests(self)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitlabQuality
4
4
  module TestTooling
5
- VERSION = "1.33.0"
5
+ VERSION = "1.34.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_quality-test_tooling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.33.0
4
+ version: 1.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-26 00:00:00.000000000 Z
11
+ date: 2024-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control