gitlab-triage 1.44.0 → 1.44.2

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: 1989fbcf91e2dc16796f87fdf597cd383902a65f51406409066cb8952b869b24
4
- data.tar.gz: 706fe85fc28143854dcce8e88d2ca09b5b69890c83d2fd39d5e3892a3e14ff50
3
+ metadata.gz: 2711b242168f197068250fa6b9edd831812e3c974ba5dc567cb2758be32cf7f1
4
+ data.tar.gz: 7947cc053eb3c0cede6eab5a84134de11962605650dab441ea218f62e1fa965c
5
5
  SHA512:
6
- metadata.gz: 621c8a5ac785f25c05995843691607f2469010e86104d98b8d7365a123d67e3ebb195b8bf919492988808625a84fa124610bf5d7190c71ca92cbf1b12aff7e0b
7
- data.tar.gz: 86e66520931275689b3b487f2a41435b68ba536f82ec52167f07994affdb0bc8b6ff476e0aff4e97ed33c09fd3da86cabc62b780d369631a4317f6867446eab9
6
+ metadata.gz: 98b81d9455e2334e8057a2c58b5ec0b198279a92f71d02433c2834cf738983bee47678630d6c467c7b3e8c0177ff22cdd3b0d1e9c331a69dc1bbc30b4f6fe703
7
+ data.tar.gz: edf3481cfbd9427ce2905aab531fc1e6f5b00a3991019fca1f5261b0a49600f2a361a3a16be46f1b55a74f460fa138f04ce01d41a6f7b6d72fd2d2db457416dd
@@ -1,8 +1,11 @@
1
- <!-- Replace `<PREVIOUS_VERSION>` with the previous version number here, `<COMMIT_UPDATING_VERSION>` with the latest
1
+ <!--1. Modify /Gemfile.lock, updating specs: gitlab-triage to the new release. See the project's git tags for the latest release. -->
2
+ <!--2. Modify /lib/gitlab/triage/version.rb, updating the version to the new release. -->
3
+ <!--3. Open a merge request with this template -->
4
+ <!--4. Replace `<PREVIOUS_VERSION>` with the previous version number here, `<COMMIT_UPDATING_VERSION>` with the latest
2
5
  commit from this merge request, and `<NEW_VERSION>` with the upcoming version number. -->
3
6
  ## Diff
4
7
 
5
- https://gitlab.com/gitlab-org/ruby/gems/gitlab-triage/-/compare/v<PREVIOUS_VERSION>...<COMMIT_UPDATING_VERSION>
8
+ https://gitlab.com/gitlab-org/ruby/gems/gitlab-triage/-/compare/<PREVIOUS_VERSION>...<COMMIT_UPDATING_VERSION>
6
9
 
7
10
  ## Checklist
8
11
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.3
1
+ 3.2.4
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.1.5
1
+ ruby 3.2.4
data/CONTRIBUTING.md CHANGED
@@ -1,9 +1,9 @@
1
1
  ## Developer Certificate of Origin + License
2
2
 
3
- By contributing to GitLab B.V., You accept and agree to the following terms and
4
- conditions for Your present and future Contributions submitted to GitLab B.V.
5
- Except for the license granted herein to GitLab B.V. and recipients of software
6
- distributed by GitLab B.V., You reserve all right, title, and interest in and to
3
+ By contributing to GitLab Inc., You accept and agree to the following terms and
4
+ conditions for Your present and future Contributions submitted to GitLab Inc.
5
+ Except for the license granted herein to GitLab Inc. and recipients of software
6
+ distributed by GitLab Inc., You reserve all right, title, and interest in and to
7
7
  Your Contributions. All Contributions are subject to the following DCO + License
8
8
  terms.
9
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-triage (1.44.0)
4
+ gitlab-triage (1.44.2)
5
5
  activesupport (>= 5.1)
6
6
  globalid (~> 1.0, >= 1.0.1)
7
7
  graphql (< 2.1.0)
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011-2017 GitLab B.V.
1
+ Copyright (c) 2011-2024 GitLab Inc.
2
2
 
3
3
  With regard to the GitLab Software:
4
4
 
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  # GitLab Triage Project
4
4
 
5
+ [[_TOC_]]
6
+
5
7
  This project allows to automate triaging of issues and merge requests for GitLab projects or groups.
6
8
 
7
9
  ## Note this Gem is not supported by the GitLab Support team
@@ -1167,14 +1169,15 @@ resource_rules:
1167
1169
  issues:
1168
1170
  rules:
1169
1171
  - name: Issues requiring extra testing
1170
- labels:
1171
- - needs-testing
1172
+ conditions:
1173
+ labels:
1174
+ - needs-testing
1172
1175
  actions:
1173
1176
  issue:
1174
1177
  title: |
1175
- Testing: {{ title }}
1178
+ Testing: {{title}}
1176
1179
  description: |
1177
- The issue {{ full_reference }} needs testing.
1180
+ The issue {{full_reference}} needs testing.
1178
1181
 
1179
1182
  Please take care of them before the end of #{7.days.from_now.strftime('%Y-%m-%d')}
1180
1183
 
@@ -79,7 +79,7 @@ module Gitlab
79
79
  # POST /(groups|projects)/:id/(epics|issues|merge_requests)/:iid/notes
80
80
  post_url = UrlBuilders::UrlBuilder.new(url_builder_opts).build
81
81
 
82
- puts Gitlab::Triage::UI.debug "post_url: #{post_url}" if network.options.debug
82
+ puts Gitlab::Triage::UI.debug "post_url: #{post_url}\ncomment:\n```\n#{comment}\n```" if network.options.debug
83
83
 
84
84
  post_url
85
85
  end
@@ -450,7 +450,7 @@ module Gitlab
450
450
 
451
451
  FILTER_MAP.each do |condition_key, filter_value|
452
452
  # Skips to the next key value pair if the condition is not applicable
453
- next unless conditions[condition_key]
453
+ next if conditions[condition_key].nil?
454
454
 
455
455
  case filter_value
456
456
  when Hash
@@ -469,9 +469,12 @@ module Gitlab
469
469
 
470
470
  # If the :ruby condition exists then filter based off of conditions
471
471
  # else we base off of the `conditions[condition_key]`.
472
+
472
473
  result =
473
474
  if condition_key.to_s == 'no_additional_labels'
474
475
  filter.new(resource, conditions[:labels]).calculate
476
+ elsif condition_key.to_s == 'protected'
477
+ filter.new(resource, conditions[:protected]).calculate
475
478
  elsif filter.instance_method(:initialize).arity == 2
476
479
  filter.new(resource, conditions[condition_key]).calculate
477
480
  else
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module Triage
5
- VERSION = '1.44.0'
5
+ VERSION = '1.44.2'
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.0
4
+ version: 1.44.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2025-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport