2024-06-16 11:17:34 +00:00
name : Label Based Actions
2024-05-19 13:20:42 +00:00
on :
issues :
types : [ labeled]
2024-06-16 11:17:34 +00:00
# pull_request:
# types: [labeled]
2024-05-19 13:20:42 +00:00
2024-08-06 14:37:47 +00:00
permissions :
issues : write
pull-requests : write
contents : write
2024-05-19 13:20:42 +00:00
jobs :
reply-labeled :
2024-09-25 15:09:48 +00:00
if : github.repository == 'vbenjs/vue-vben-admin'
2024-05-19 13:20:42 +00:00
runs-on : ubuntu-latest
steps :
2024-06-16 12:17:37 +00:00
- name : remove enhancement pending
if : github.event.label.name == 'enhancement'
uses : actions-cool/issues-helper@v3
with :
2024-09-21 02:46:38 +00:00
actions : 'remove-labels'
2024-08-06 14:37:47 +00:00
token : ${{ secrets.GITHUB_TOKEN }}
2024-06-16 12:17:37 +00:00
issue-number : ${{ github.event.issue.number }}
2024-09-21 02:46:38 +00:00
labels: 'enhancement : pending triage'
2024-06-16 12:17:37 +00:00
- name : remove bug pending
if : github.event.label.name == 'bug'
uses : actions-cool/issues-helper@v3
with :
2024-09-21 02:46:38 +00:00
actions : 'remove-labels'
2024-08-06 14:37:47 +00:00
token : ${{ secrets.GITHUB_TOKEN }}
2024-06-16 12:17:37 +00:00
issue-number : ${{ github.event.issue.number }}
2024-09-21 02:46:38 +00:00
labels: 'bug : pending triage'
2024-05-19 13:20:42 +00:00
2024-06-16 11:17:34 +00:00
- name : needs reproduction
if : github.event.label.name == 'needs reproduction'
uses : actions-cool/issues-helper@v3
2024-05-19 13:20:42 +00:00
with :
2024-09-21 02:46:38 +00:00
actions : 'create-comment, remove-labels'
2024-08-06 14:37:47 +00:00
token : ${{ secrets.GITHUB_TOKEN }}
2024-05-19 13:20:42 +00:00
issue-number : ${{ github.event.issue.number }}
body : |
2024-06-16 11:17:34 +00:00
Hello @${{ github.event.issue.user.login }}. Please provide the complete reproduction steps and code. Issues labeled by `needs reproduction` will be closed if no activities in 3 days.
2024-09-21 02:46:38 +00:00
labels: 'bug : pending triage'