.triage-policies.yml 4.97 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
resource_rules:
  issues:
    rules:
      - name: Close stale issues with no milestone or planning labels
        conditions:
          date:
            attribute: updated_at
            condition: older_than
            interval_type: months
            interval: 18
          milestone:
            - No Milestone
          forbidden_labels:
            - 2. Deliverable
            - 2. Stretch
            - 1. Epic
            # Features are handled in a different rule
            - 1. Feature
19
            - 1. Enhancement
20
            - Bot Exception
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
          state: opened
        actions:
          status: close
          labels:
            - 15. Auto Updated
          comment: |
            Hi,

            Thank you for raising an issue to help improve Nautilus. We're sorry this particular issue has gone unnoticed for quite some time.

            This issue will be closed, as it meets the following criteria:
            * No activity in the past 18 months (3 releases).
            * Unscheduled. Not associated with a milestone or with ~"2. Deliverable" or ~"2. Stretch" project planning labels.

            We'd like to ask you to help us keep our issue tracker organized  by determining whether this issue should be reopened.

            If this issue is reporting a bug, let us know if this issue is still present in a newer version and if you can reproduce it in the [nightly version](https://wiki.gnome.org/Apps/Nightly).

            Thanks for your help!
40

41
            ---
42

43
            This is an automatic message. If you have suggestions to improve this automatic action feel free to add a comment on https://gitlab.gnome.org/GNOME/nautilus/issues/715
44 45 46 47

      - name: Mark stale unlabelled issues for triage
        conditions:
          date:
48
            attribute: created_at
49 50
            condition: older_than
            interval_type: months
51
            interval: 2
52 53 54 55 56 57
          # We want to handle those that doesn't have these labels, including those with other labels.
          forbidden_labels:
            - 1. Bug
            - 1. Crash
            - 1. Epic
            - 1. Feature
58
            - 1. Enhancement
59
            - 1. Regression
60
            - Bot Exception
61 62 63 64
          state: opened
        actions:
          labels:
            - 15. Untriaged
65 66 67
          summarize:
            title: Issues that need triaging
            item: |
68
              - {{web_url}} - {{title}} - {{labels}}
69 70
            summary: |
              The following issues were created two months ago and they are unlabeled:
71

72
              {{items}}
73

74
              /cc @Teams/BugSquad
75 76 77 78 79 80 81

      - name: Close old feature proposals without planning labels or milestones
        conditions:
          date:
            attribute: created_at
            condition: older_than
            interval_type: months
82
            interval: 24
83 84 85 86 87 88
          labels:
            - 1. Feature
          forbidden_labels:
            - 2. Deliverable
            - 2. Stretch
            - 1. Epic
89
            - Bot Exception
90 91 92 93 94 95
          milestone:
            - No Milestone
          state: opened
          upvotes:
            attribute: upvotes
            condition: less_than
96
            threshold: 5
97 98
        actions:
          labels:
99
            - 15. Auto Updated
100 101 102 103
          status: close
          comment: |
            Hi,

104
            First of all, thank you for raising an issue to help improving Nautilus. In order to maintain order in the issue tracker we are closing old, unscheduled feature proposals.
105

106
            Unfortunately, no Merge Request has been provided for this, and/or the project contributors are not planning this feature in the foreseeable future.
107 108 109 110

            This issue will be closed as it meets the following criteria:
            * Created more than 12 months ago
            * Labeled as ~"1. Feature"
111 112
            * Not associated with a milestone or with ~"2. Deliverable" or ~"2. Stretch" project planning labels.
            
113
            Thanks for your help!
114

115
            ---
116

117
            This is an automatic message. If you have suggestions to improve this automatic action feel free to add a comment on https://gitlab.gnome.org/GNOME/nautilus/issues/715
118

119
      - name: Close issues that need information and weren't updated 
120 121 122 123 124 125 126 127
        conditions:
          date:
            attribute: updated_at
            condition: older_than
            interval_type: weeks
            interval: 4
          state: opened
          labels:
128 129 130
            - 2. Needs Information
          forbidden_labels:
            - Bot Exception
131 132 133 134 135 136 137 138 139 140
        actions:
          status: close
          labels:
            - 15. Auto Updated
          comment: |
            Closing this issue as no further information or feedback has been provided.

            Please feel free to reopen this issue if you can provide the information or feedback.

            Thanks for your help!
141

142
            ---
143

144
            This is an automatic message. If you have suggestions to improve this automatic action feel free to add a comment on https://gitlab.gnome.org/GNOME/nautilus/issues/715