gitlab-triage 0.14.0 → 0.14.1

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: 636a4953fea53e7808b154e352c37d6a33c3cd9a57695f98d05fa90a44efd2cc
4
- data.tar.gz: 82d61352bdd126d09650ed9f0efcbf1714783444f172a559571d33530000bef2
3
+ metadata.gz: 0a4644219bf9e18ad39bca39fcac9a122f46d69f18dfb618ad441e364200e53a
4
+ data.tar.gz: '032997cbb0b32059455367606d8647e532c3a440c07289d329b9453e2ef29b39'
5
5
  SHA512:
6
- metadata.gz: '069d55c96a5fac0989ced21614782c06b11ef8a56fb59e7bc457e73fa9bb77c223680ee1399f4854bc22697075880ef3233575a1a332ab75b934664a2a654d44'
7
- data.tar.gz: 1521bc67e168f19d231112782f9d12457a422b93e86cfa10a4565eebb026bdbfb8e6401764ecb84a25bbbfe3687f7c189323e106de4ad2b6020618f75dde99fb
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 `item` and `summary` keys in the sub-policies' `actions` are
680
- used. Any other keys (e.g. `mention`, `comment`, `labels` etc.) are ignored.
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
- item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
708
- summary: |
709
- Please triage the following new issues:
707
+ summarize:
708
+ item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
709
+ summary: |
710
+ Please triage the following new issues:
710
711
 
711
- {{items}}
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
- item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
719
- summary: |
720
- Please triage the following old issues:
719
+ summarize:
720
+ item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
721
+ summary: |
722
+ Please triage the following old issues:
721
723
 
722
- {{items}}
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
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Triage
3
- VERSION = '0.14.0'.freeze
3
+ VERSION = '0.14.1'.freeze
4
4
  end
5
5
  end
@@ -34,16 +34,18 @@ resource_rules:
34
34
  limits:
35
35
  most_recent: 2
36
36
  actions:
37
- item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
38
- summary: "Please triage the following new issues:\n\n{{items}}"
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
- item: "- [ ] [{{title}}]({{web_url}}) {{labels}}"
46
- summary: "Please triage the following old issues:\n\n{{items}}"
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.0
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-26 00:00:00.000000000 Z
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.8
205
+ rubygems_version: 2.7.6
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: GitLab triage automation project.