forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 1
21 lines (18 loc) · 847 Bytes
/
issue-bot.yaml
File metadata and controls
21 lines (18 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Issue bot
on:
issues:
types: [closed, assigned, unassigned, labeled]
jobs:
remove_label:
runs-on: ubuntu-latest
steps:
- name: Remove status labels on close
if: github.event.action == 'closed'
run: gh issue edit --repo prefecthq/prefect ${{ github.event.issue.number }} --remove-label "status:triage" --remove-label "status:in-progress" --remove-label "status:accepted"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Remove triage label on status change
if: github.event.action == 'labeled' && startsWith(github.event.label.name, 'status:') && github.event.label.name != 'status:triage'
run: gh issue edit --repo prefecthq/prefect ${{ github.event.issue.number }} --remove-label "status:triage"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}