diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index faa8be16..be284ab6 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - - name: Questions & Discussions & Feature request + - name: Questions & Discussions url: https://github.com/Xhofe/alist/discussions - about: Use GitHub discussions for message-board style questions and discussions or feature request. \ No newline at end of file + about: Use GitHub discussions for message-board style questions and discussions. \ No newline at end of file diff --git a/.github/workflows/issue_duplicate.yml b/.github/workflows/issue_duplicate.yml new file mode 100644 index 00000000..77219270 --- /dev/null +++ b/.github/workflows/issue_duplicate.yml @@ -0,0 +1,25 @@ +name: Issue Duplicate + +on: + issues: + types: [labeled] + +jobs: + create-comment: + runs-on: ubuntu-latest + if: github.event.label.name == 'duplicate' + steps: + - name: Create comment + uses: actions-cool/issues-helper@v2 + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}, please input issue by template and add detail. Issues labeled by Need More Info will be closed if no activities in 7 days. + 你好 @${{ github.event.issue.user.login }},你的issue是重复的,将被关闭。 + - name: Close issue + uses: actions-cool/issues-helper@v2 + with: + actions: 'close-issue' + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/issue_invalid.yml b/.github/workflows/issue_invalid.yml new file mode 100644 index 00000000..06d28e03 --- /dev/null +++ b/.github/workflows/issue_invalid.yml @@ -0,0 +1,18 @@ +name: Issue Invalid + +on: + issues: + types: [labeled] + +jobs: + lock-issue: + runs-on: ubuntu-latest + if: github.event.label.name == 'invalid' + steps: + - name: Lock issue + uses: actions-cool/issues-helper@v2 + with: + actions: 'lock-issue' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + lock-reason: 'off-topic' \ No newline at end of file diff --git a/.github/workflows/issue_question.yml b/.github/workflows/issue_question.yml new file mode 100644 index 00000000..980b3d96 --- /dev/null +++ b/.github/workflows/issue_question.yml @@ -0,0 +1,20 @@ +name: Issue Question + +on: + issues: + types: [labeled] + +jobs: + create-comment: + runs-on: ubuntu-latest + if: github.event.label.name == 'question' + steps: + - name: Create comment + uses: actions-cool/issues-helper@v2.0.0 + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}, please input issue by template and add detail. Issues labeled by Need More Info will be closed if no activities in 7 days. + 你好 @${{ github.event.issue.user.login }},请按照issue模板填写, 并详细说明问题和复现步骤等, 7天内未回复issue自动关闭。 \ No newline at end of file