gitlab-triage 0.14.0 → 0.14.1
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 +4 -4
- data/README.md +12 -10
- data/lib/gitlab/triage/policies/rule_policy.rb +1 -1
- data/lib/gitlab/triage/version.rb +1 -1
- data/support/.triage-policies.example.yml +6 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a4644219bf9e18ad39bca39fcac9a122f46d69f18dfb618ad441e364200e53a
|
|
4
|
+
data.tar.gz: '032997cbb0b32059455367606d8647e532c3a440c07289d329b9453e2ef29b39'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b141fff9291004febcb944b829285358dd8f0c791e044015a3108c259ba95456bb67ae1ac7c0c8f6b02f72faa04a2b725559a6a9803651fecb92ce7668f9d3cc
|
|
7
|
+
data.tar.gz: 9871a88ac9ecd507d65dd26343e971caa548976bc67c3c7b8533e61dd5f07e93bd98620b9da94539237116d20ae5cf3eafb3bf5dc5ad15781488f9e0fe3fa48e
|
data/README.md
CHANGED
|
@@ -676,8 +676,8 @@ They have the same structure as Rule policies that define `actions.summarize`.
|
|
|
676
676
|
One key difference is that the `{{items}}` placeholder represents the array of
|
|
677
677
|
sub-policies' summary.
|
|
678
678
|
|
|
679
|
-
Note that only the `
|
|
680
|
-
|
|
679
|
+
Note that only the `summarize` keys in the sub-policies' `actions` is used. Any
|
|
680
|
+
other keys (e.g. `mention`, `comment`, `labels` etc.) are ignored.
|
|
681
681
|
|
|
682
682
|
You can define such policy as follows:
|
|
683
683
|
|
|
@@ -704,22 +704,24 @@ resource_rules:
|
|
|
704
704
|
limits:
|
|
705
705
|
most_recent: 2
|
|
706
706
|
actions:
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
707
|
+
summarize:
|
|
708
|
+
item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
|
|
709
|
+
summary: |
|
|
710
|
+
Please triage the following new issues:
|
|
710
711
|
|
|
711
|
-
|
|
712
|
+
{{items}}
|
|
712
713
|
- name: Old issues
|
|
713
714
|
conditions:
|
|
714
715
|
state: opened
|
|
715
716
|
limits:
|
|
716
717
|
oldest: 2
|
|
717
718
|
actions:
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
719
|
+
summarize:
|
|
720
|
+
item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
|
|
721
|
+
summary: |
|
|
722
|
+
Please triage the following old issues:
|
|
721
723
|
|
|
722
|
-
|
|
724
|
+
{{items}}
|
|
723
725
|
```
|
|
724
726
|
|
|
725
727
|
Which could generate an issue like:
|
|
@@ -9,7 +9,7 @@ module Gitlab
|
|
|
9
9
|
class RulePolicy < BasePolicy
|
|
10
10
|
# Build an issue from a single rule policy
|
|
11
11
|
def build_issue
|
|
12
|
-
EntityBuilders::IssueBuilder.new(actions, resources, net)
|
|
12
|
+
EntityBuilders::IssueBuilder.new(actions[:summarize], resources, net)
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
end
|
|
@@ -34,16 +34,18 @@ resource_rules:
|
|
|
34
34
|
limits:
|
|
35
35
|
most_recent: 2
|
|
36
36
|
actions:
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
summarize:
|
|
38
|
+
item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
|
|
39
|
+
summary: "Please triage the following new issues:\n\n{{items}}"
|
|
39
40
|
- name: Old issues
|
|
40
41
|
conditions:
|
|
41
42
|
state: opened
|
|
42
43
|
limits:
|
|
43
44
|
oldest: 2
|
|
44
45
|
actions:
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
summarize:
|
|
47
|
+
item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
|
|
48
|
+
summary: "Please triage the following old issues:\n\n{{items}}"
|
|
47
49
|
merge_requests:
|
|
48
50
|
rules:
|
|
49
51
|
[]
|
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: 0.14.
|
|
4
|
+
version: 0.14.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitLab
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-11-
|
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
202
202
|
version: '0'
|
|
203
203
|
requirements: []
|
|
204
204
|
rubyforge_project:
|
|
205
|
-
rubygems_version: 2.7.
|
|
205
|
+
rubygems_version: 2.7.6
|
|
206
206
|
signing_key:
|
|
207
207
|
specification_version: 4
|
|
208
208
|
summary: GitLab triage automation project.
|