diff --git a/.github/workflows/create_comment.yml b/.github/workflows/create_comment.yml deleted file mode 100644 index 4e86dec0..00000000 --- a/.github/workflows/create_comment.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: create_comment - -on: - issues: - types: [labeled] - -jobs: - create-comment: - runs-on: ubuntu-latest - if: github.event.label.name == 'need info' - steps: - - name: Create comment - uses: actions-cool/issues-helper@v3 - with: - actions: 'create-comment' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - 你好 ${{ github.event.issue.user.login }},请及时回复,否则你的 issue 将会被关闭! diff --git a/.github/workflows/issue_content_check.yml b/.github/workflows/issue_content_check.yml index 667db200..008bcfbd 100644 --- a/.github/workflows/issue_content_check.yml +++ b/.github/workflows/issue_content_check.yml @@ -9,34 +9,18 @@ jobs: runs-on: ubuntu-latest steps: - - name: Add label and comment for missing snapshots + - name: Add label and close issue for missing snapshots if: | contains(github.event.issue.body, 'i.gkd.li/') == false && contains(github.event.issue.body, '.zip') == false uses: actions-cool/issues-helper@v3 with: - actions: add-labels,create-comment + actions: add-labels,create-comment,close-issue token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} labels: 'invalid' body: | - 你好 ${{ github.event.issue.user.login }},检测到您没有提供快照,请补充必要的快照,不要提供截图,截图没有任何作用,快照获取方式如下图! - - 可在下方评论区补充 - ![img](https://raw.githubusercontent.com/AIsouler/GKD_subscription/refs/heads/main/Snapshot.png) - - - name: Add label and comment for uploading failed - if: contains(github.event.issue.body, 'Uploading') == true - uses: actions-cool/issues-helper@v3 - with: - actions: add-labels,create-comment - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - labels: 'invalid' - body: | - 你好 ${{ github.event.issue.user.login }},检测到您的文件上传失败,请在上传时等待文件前面的 Uploading 消失后再提交! - - 可在下方评论区补充 + 您好 ${{ github.event.issue.user.login }},由于您没有提供快照,此issue已被自动关闭。 - name: Add label and comment for inaccessible snapshot links if: contains(github.event.issue.body, 'i.gkd.li/snapshot/') == true @@ -47,6 +31,6 @@ jobs: issue-number: ${{ github.event.issue.number }} labels: 'invalid' body: | - 你好 ${{ github.event.issue.user.login }},检测到您提供了他人无法访问的链接,请提供快照页面右上角生成的分享链接! + 您好 ${{ github.event.issue.user.login }},检测到您提供了他人无法访问的链接,请提供快照页面右上角生成的分享链接! 可在下方评论区补充