|
| 1 | +# https://github.com/DeFiCh/oss-governance-bot |
| 2 | +# https://github.com/DeFiCh/app/blob/master/.github/governance.yml |
| 3 | +# todo: should be synced |
| 4 | +version: v1 |
| 5 | + |
| 6 | +issue: |
| 7 | + captures: |
| 8 | + - regex: '- Version: *(.+) *' |
| 9 | + github_release: true |
| 10 | + ignore_case: true |
| 11 | + label: 'version/$CAPTURED' |
| 12 | + |
| 13 | + - regex: '- Operating System \(OS\): *(windows?|ms|wins?|microsoft).*' |
| 14 | + label: 'os/win' |
| 15 | + ignore_case: true |
| 16 | + |
| 17 | + - regex: '- Operating System \(OS\): *(linux|linus|lin|unix|ubuntu|fedora|debian).*' |
| 18 | + label: 'os/linux' |
| 19 | + ignore_case: true |
| 20 | + |
| 21 | + - regex: '- Operating System \(OS\): *(macos|mac|apple|macintosh|macbook).*' |
| 22 | + label: 'os/mac' |
| 23 | + ignore_case: true |
| 24 | + |
| 25 | + labels: |
| 26 | + - prefix: triage |
| 27 | + list: ['accepted'] |
| 28 | + multiple: true |
| 29 | + author_association: |
| 30 | + collaborator: true |
| 31 | + member: true |
| 32 | + owner: true |
| 33 | + first_timer: false |
| 34 | + needs: |
| 35 | + comment: | |
| 36 | + @$AUTHOR: Thanks for opening an issue, it is currently awaiting triage. |
| 37 | + The triage/accepted label can be added by foundation members by writing `/triage accepted` in a comment. |
| 38 | + - prefix: kind |
| 39 | + list: ['feature', 'bug', 'question'] |
| 40 | + multiple: true |
| 41 | + needs: false |
| 42 | + author_association: |
| 43 | + author: true |
| 44 | + collaborator: true |
| 45 | + member: true |
| 46 | + owner: true |
| 47 | + |
| 48 | + - prefix: area |
| 49 | + list: [ 'bug', 'github-action', "feature", "security", 'docs', 'question', 'release', 'dependencies' ] |
| 50 | + multiple: true |
| 51 | + author_association: |
| 52 | + collaborator: true |
| 53 | + member: true |
| 54 | + owner: true |
| 55 | + first_timer: true |
| 56 | + needs: |
| 57 | + comment: | |
| 58 | + @$AUTHOR: There are no area labels on this issue. You can add as many area as you see fit. **If you are unsure what to do you can ignore this!** |
| 59 | + Aread can be added by writing in a comment ⬇️ |
| 60 | + * `/area kind/bug` |
| 61 | + * `/area kind/github-action` |
| 62 | + * `/area kind/feature` |
| 63 | + * `/area kind/docs` |
| 64 | + * `/area kind/question` |
| 65 | + * `/area kind/security` |
| 66 | + * `/area dependencies` |
| 67 | + - prefix: os |
| 68 | + list: ['mac', 'win', 'linux'] |
| 69 | + multiple: true |
| 70 | + |
| 71 | + - prefix: logs |
| 72 | + list: ['accepted', 'from-email'] |
| 73 | + multiple: true |
| 74 | + author_association: |
| 75 | + collaborator: true |
| 76 | + member: true |
| 77 | + owner: true |
| 78 | + |
| 79 | + - prefix: priority |
| 80 | + multiple: true |
| 81 | + list: ['urgent-now', 'important-soon'] |
| 82 | + author_association: |
| 83 | + collaborator: true |
| 84 | + member: true |
| 85 | + owner: true |
| 86 | + |
| 87 | + chat_ops: |
| 88 | + - cmd: /close |
| 89 | + type: close |
| 90 | + author_association: |
| 91 | + author: true |
| 92 | + collaborator: true |
| 93 | + member: true |
| 94 | + owner: true |
| 95 | + |
| 96 | + - cmd: /duplicate |
| 97 | + type: close |
| 98 | + author_association: |
| 99 | + collaborator: true |
| 100 | + member: true |
| 101 | + owner: true |
| 102 | + |
| 103 | + - cmd: /duplicate |
| 104 | + type: comment |
| 105 | + comment: | |
| 106 | + @$ISSUE_AUTHOR: This issue has been marked duplicate by @$AUTHOR, if you think this is a mistake, please reopen it! |
| 107 | + author_association: |
| 108 | + collaborator: true |
| 109 | + member: true |
| 110 | + owner: true |
| 111 | + |
| 112 | + - cmd: /duplicate |
| 113 | + type: label |
| 114 | + label: |
| 115 | + add: duplicate |
| 116 | + author_association: |
| 117 | + collaborator: true |
| 118 | + member: true |
| 119 | + owner: true |
| 120 | + |
| 121 | + - cmd: /cc |
| 122 | + type: none |
| 123 | + |
| 124 | + - cmd: /assign |
| 125 | + type: assign |
| 126 | + author_association: |
| 127 | + collaborator: true |
| 128 | + member: true |
| 129 | + owner: true |
| 130 | + |
| 131 | + - cmd: /comment issue |
| 132 | + type: comment |
| 133 | + comment: | |
| 134 | + @$ISSUE_AUTHOR: Hey this is comment issue example for issue/pr author. |
| 135 | + @$AUTHOR: Hey this is comment issue example for sender author. |
| 136 | +pull_request: |
| 137 | + labels: |
| 138 | + - prefix: kind |
| 139 | + multiple: true |
| 140 | + list: [feature, fix, chore, docs, refactor, security, github, question] |
| 141 | + needs: |
| 142 | + comment: | |
| 143 | + @$AUTHOR: There are no 'kind' label on this PR. You need a 'kind' label. |
| 144 | + Label can be added by writing in a comment ⬇️ |
| 145 | + * `/kind feature` |
| 146 | + * `/kind fix` |
| 147 | + * `/kind chore` |
| 148 | + * `/kind docs` |
| 149 | + * `/kind refactor` |
| 150 | + * `/kind github` |
| 151 | + * `/kind security` |
| 152 | + * `/kind question` |
| 153 | + status: |
| 154 | + context: 'governance kind/* Label' |
| 155 | + description: |
| 156 | + success: Ready for review & merge. |
| 157 | + failure: Missing kind label for release generation. |
| 158 | + |
| 159 | + author_association: |
| 160 | + author: true |
| 161 | + collaborator: true |
| 162 | + member: true |
| 163 | + owner: true |
| 164 | + first_timer: true |
| 165 | + |
| 166 | + - prefix: priority |
| 167 | + multiple: false |
| 168 | + list: [ "urgent-now", "important-soon" ] |
| 169 | + author_association: |
| 170 | + collaborator: true |
| 171 | + member: true |
| 172 | + owner: true |
| 173 | + |
| 174 | + chat_ops: |
| 175 | + - cmd: /close |
| 176 | + type: close |
| 177 | + author_association: |
| 178 | + author: true |
| 179 | + collaborator: true |
| 180 | + member: true |
| 181 | + owner: true |
| 182 | + |
| 183 | + - cmd: /cc |
| 184 | + type: none |
| 185 | + |
| 186 | + - cmd: /request |
| 187 | + type: review |
| 188 | + author_association: |
| 189 | + collaborator: true |
| 190 | + member: true |
| 191 | + owner: true |
| 192 | + |
| 193 | + - cmd: /comment pr |
| 194 | + type: comment |
| 195 | + comment: | |
| 196 | + @$AUTHOR: Hey this is comment pr example. |
0 commit comments