actions: reuse the feedback action

This commit is contained in:
Deng Ming 2024-04-08 17:45:35 +08:00 committed by Ming Deng
parent 0f9372234c
commit c1bd461068
2 changed files with 3 additions and 17 deletions

View File

@ -1,16 +0,0 @@
on:
issues:
types: [opened, edited]
jobs:
auto_close_issues:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Automatically close issues that don't follow the issue template
uses: lucasbento/auto-close-issues@v1.0.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template." # optional property
closed-issues-label: "🙁 Not following issue template" # optional property

View File

@ -15,5 +15,7 @@ jobs:
# these are optional, if you want to configure: # these are optional, if you want to configure:
days-until-close: 5 days-until-close: 5
trigger-label: status/need-feedback trigger-label: status/need-feedback
closing-comment: This issue was closed by the need-feedback bot due to without feebacks. closing-comment: |
This issue was closed by the need-feedback bot.
@${issue.user.login}, please follow the issue template/discussion to provide more details.
dry-run: false dry-run: false