gitlab-triage 1.44.5 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7dcf562327f4c1cb9000f202742fef19e6f98d4cb2c1366fdc4e4ddc12e92e3
4
- data.tar.gz: c4d846bf074fd836674a00243214cd46bf4646533f5491e135411d1fd70bfc1d
3
+ metadata.gz: 1856f27e2fd90073a787ff462f8d44dbf663e0891997a0cc47004d0744626fb5
4
+ data.tar.gz: 27c3c82f06e1d627d1a4be488a7f3f5da10f2128194e586683cbe1f25a4a4a20
5
5
  SHA512:
6
- metadata.gz: d530580eb38b4ebdd08607854caf8472dbb818a5371ba94e086f3ce0c94fe9df4d46c600fd82f54c1d200b006cf2ba3a644bcb07fe0eb9e343e7528cc873d5df
7
- data.tar.gz: 31c116393ec4e4c4941737ed595efba31dc6f7060c0ff0ef7cb5b8549bc3ae9af619ec0155f157600c4d1358ef337d39888ad1ed9677421d2311a66426101b46
6
+ metadata.gz: c12667106d68abdf922dd98a60250e3b13a50930c0a7b3e712e5ecbbf84f5bd66726af8037acdd2f9d416335d4e4c5a07c896c32d96a0f9f58f4088f23d5d77d
7
+ data.tar.gz: 40cc0873abb688baf9536d5739d1b654497caf6aad2e9bd55f693cf5af34e22cc725b4becdd6282652788e184e4305333ed366493db93c2bea82a32919205aca
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-triage (1.44.5)
4
+ gitlab-triage (1.45.0)
5
5
  activesupport (>= 5.1)
6
6
  globalid (~> 1.0, >= 1.0.1)
7
7
  graphql (< 2.1.0)
@@ -57,7 +57,7 @@ module Gitlab
57
57
  post_url = UrlBuilders::UrlBuilder.new(
58
58
  network_options: network.options,
59
59
  source_id: summary['project_id'],
60
- resource_type: policy.type,
60
+ resource_type: summary['type'],
61
61
  resource_id: summary['iid'],
62
62
  sub_resource_type: sub_resource_type
63
63
  ).build
@@ -6,6 +6,8 @@ module Gitlab
6
6
  module Triage
7
7
  module Action
8
8
  class Summarize < Base
9
+ SUMMARY_RESOURCE_TYPE = 'issues'
10
+
9
11
  class Dry < Summarize
10
12
  private
11
13
 
@@ -13,7 +15,8 @@ module Gitlab
13
15
  policy.summary = {
14
16
  web_url: '[the-created-issue-url]',
15
17
  project_id: 'some-id',
16
- iid: 'some-iid'
18
+ iid: 'some-iid',
19
+ type: SUMMARY_RESOURCE_TYPE
17
20
  }.with_indifferent_access
18
21
 
19
22
  if group_summary_without_destination?
@@ -62,7 +65,7 @@ module Gitlab
62
65
  post_url = UrlBuilders::UrlBuilder.new(
63
66
  network_options: network.options,
64
67
  source_id: destination,
65
- resource_type: 'issues'
68
+ resource_type: SUMMARY_RESOURCE_TYPE
66
69
  ).build
67
70
 
68
71
  puts Gitlab::Triage::UI.debug "post_issue_url: #{post_url}" if network.options.debug
@@ -76,6 +76,11 @@ module Gitlab
76
76
  started?(today) && !expired?(today)
77
77
  end
78
78
 
79
+ def all_active_with_start_date
80
+ @all_active_with_start_date ||=
81
+ all_active.select(&:start_date).sort_by(&:start_date)
82
+ end
83
+
79
84
  private
80
85
 
81
86
  def current_index
@@ -83,11 +88,6 @@ module Gitlab
83
88
  .index { |milestone| milestone.id == id }
84
89
  end
85
90
 
86
- def all_active_with_start_date
87
- @all_active_with_start_date ||=
88
- all_active.select(&:start_date).sort_by(&:start_date)
89
- end
90
-
91
91
  def all_active
92
92
  @all_active ||=
93
93
  network
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module Triage
5
- VERSION = '1.44.5'
5
+ VERSION = '1.45.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-triage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.44.5
4
+ version: 1.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-28 00:00:00.000000000 Z
11
+ date: 2025-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport