2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 17:17:13 +08:00
Files
panel/.github/workflows/issue-auto-close.yml
2024-10-16 01:52:52 +08:00

27 lines
986 B
YAML

name: Issue Auto Close
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
push:
branches:
- main
issues:
types: [ opened ]
permissions:
issues: write
contents: read
jobs:
issue-close:
runs-on: ubuntu-latest
steps:
- name: Set GH_REPO
run: echo "GH_REPO=${{ github.repository }}" >> $GITHUB_ENV
- name: Auto Lock Baipiao
uses: devhaozi/issue-auto-lock@v1.0.0
with:
gh_repo: ${{ github.repository }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
issue_labels: "⭐ No Star"
issue_close_comment: 'Thank you for opening this issue. I noticed that you haven not given me a star yet, so I will close this issue. Please give me a star first and wait for it to be unlocked. Thank you for your understanding.'
issue_reopen_comment: 'Thank you for giving me a star. I have unlocked this issue. If you have any questions, please feel free to ask. Thank you for your support.'