gitlab-triage 1.44.0 → 1.44.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab/merge_request_templates/Release.md +5 -2
- data/.ruby-version +1 -1
- data/.tool-versions +1 -1
- data/CONTRIBUTING.md +4 -4
- data/Gemfile.lock +1 -1
- data/LICENSE.md +1 -1
- data/README.md +7 -4
- data/lib/gitlab/triage/action/comment.rb +1 -1
- data/lib/gitlab/triage/engine.rb +4 -1
- data/lib/gitlab/triage/version.rb +1 -1
- 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: 2711b242168f197068250fa6b9edd831812e3c974ba5dc567cb2758be32cf7f1
|
4
|
+
data.tar.gz: 7947cc053eb3c0cede6eab5a84134de11962605650dab441ea218f62e1fa965c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98b81d9455e2334e8057a2c58b5ec0b198279a92f71d02433c2834cf738983bee47678630d6c467c7b3e8c0177ff22cdd3b0d1e9c331a69dc1bbc30b4f6fe703
|
7
|
+
data.tar.gz: edf3481cfbd9427ce2905aab531fc1e6f5b00a3991019fca1f5261b0a49600f2a361a3a16be46f1b55a74f460fa138f04ce01d41a6f7b6d72fd2d2db457416dd
|
@@ -1,8 +1,11 @@
|
|
1
|
-
<!--
|
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
|
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.
|
1
|
+
3.2.4
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 3.
|
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
|
4
|
-
conditions for Your present and future Contributions submitted to GitLab
|
5
|
-
Except for the license granted herein to GitLab
|
6
|
-
distributed by GitLab
|
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
data/LICENSE.md
CHANGED
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
|
-
|
1171
|
-
|
1172
|
+
conditions:
|
1173
|
+
labels:
|
1174
|
+
- needs-testing
|
1172
1175
|
actions:
|
1173
1176
|
issue:
|
1174
1177
|
title: |
|
1175
|
-
Testing: {{
|
1178
|
+
Testing: {{title}}
|
1176
1179
|
description: |
|
1177
|
-
The issue {{
|
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
|
data/lib/gitlab/triage/engine.rb
CHANGED
@@ -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
|
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
|
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.
|
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:
|
11
|
+
date: 2025-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|