summaryrefslogtreecommitdiff
path: root/.triage-policies.yml
blob: dfa23e26037136f2fe4c9220c73ee318d0e21638 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
host_url: https://gitlab.freedesktop.org

resource_rules:
  issues:
    rules:
      - name: Close issues with no activity for 6 months
        conditions:
          date:
            attribute: updated_at
            condition: older_than
            interval_type: months
            interval: 6
          state: opened
        actions:
            comment: |
                This issue has been inactive for 6 months, closing automatically, please reopen if you think the issue is still relevant.
            status: close
            labels:
                - auto-closed
      - name: Close RFE with no activity for 12 months
        conditions:
          date:
            attribute: updated_at
            condition: older_than
            interval_type: months
            interval: 12
          state: opened
          labels:
              - enhancement
        actions:
            comment: |
                This enhancement issue has been inactive for 12 months, closing automatically, please reopen if you think the issue is still relevant.
            status: close
            labels:
                - auto-closed
      - name: Clear auto-closed label for open issues
        conditions:
          state: opened
          labels:
                - auto-closed
        actions:
            remove_labels:
                - auto-closed
  merge_requests:
    rules:
      - name: Close MRs with no activity after 2 month
        conditions:
          date:
            attribute: updated_at
            condition: older_than
            interval_type: months
            interval: 2
          state: opened
        actions:
            comment: |
                This MR has been inactive for more than 2 months, closing automatically, please reopen if you think it is still relevant.
            status: close
            labels:
                - auto-closed
      - name: Clear auto-closed label for open MRs
        conditions:
          state: opened
          labels:
                - auto-closed
        actions:
            remove_labels:
                - auto-closed