admin-vben/.github/workflows/issue-labeled.yml

32 lines
1.1 KiB
YAML
Raw Normal View History

name: Label Based Actions
2024-05-19 13:20:42 +00:00
on:
issues:
types: [labeled]
# pull_request:
# types: [labeled]
2024-05-19 13:20:42 +00:00
jobs:
reply-labeled:
runs-on: ubuntu-latest
steps:
# - name: remove pending
# if: github.event.label.name == 'enhancement' || github.event.label.name == 'bug'
# uses: actions-cool/issues-helper@v3
# with:
# actions: "remove-labels"
# token: ${{ secrets.ACCESS_TOKEN }}
# issue-number: ${{ github.event.issue.number }}
# labels: "bug: pending triage"
2024-05-19 13:20:42 +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:
actions: "create-comment, remove-labels"
token: ${{ secrets.ACCESS_TOKEN }}
2024-05-19 13:20:42 +00:00
issue-number: ${{ github.event.issue.number }}
body: |
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-05-19 13:20:42 +00:00
labels: "bug: pending triage"