diff --git a/.github/workflows/add_labels.yml b/.github/workflows/add_labels.yml new file mode 100644 index 00000000..88b3e116 --- /dev/null +++ b/.github/workflows/add_labels.yml @@ -0,0 +1,30 @@ +name: Add Labels + +on: + issues: + types: [opened] + +jobs: + add-labels: + runs-on: ubuntu-latest + if: | + contains(github.event.issue.body, 'i.gkd.li/i/') == false && + contains(github.event.issue.body, '.zip') == false + steps: + - name: Add labels + uses: actions-cool/issues-helper@v3 + with: + actions: 'add-labels' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + labels: 'need info' + - 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 缺少必要的快照信息。请在评论中提供更多信息,以便我们更好地帮助您。谢谢! + + Hello ${{ github.event.issue.user.login }}. Due to the lack of necessary snapshot information in your Issue, please provide more information in the comment so that we can better assist you. Thank you! diff --git a/.github/workflows/issue_close_question.yml b/.github/workflows/issue_close_question.yml new file mode 100644 index 00000000..9dada8d5 --- /dev/null +++ b/.github/workflows/issue_close_question.yml @@ -0,0 +1,25 @@ +name: Issue Close Question + +on: + schedule: + - cron: '0 0 * * *' + +permissions: + contents: read + +jobs: + issue-close-require: + permissions: + issues: write + runs-on: ubuntu-latest + steps: + - name: needs more info + uses: actions-cool/issues-helper@v3 + with: + actions: 'close-issues' + labels: 'need info' + inactive-day: 3 + body: | + 由于该 Issue 3 天未收到回应,现已被自动关闭,若有任何问题,可评论回复。 + + This issue has been closed automatically because it has not had recent activity for 3 days. If you have any questions, please comment here. diff --git a/src/globalGroups.ts b/src/globalGroups.ts index c6beab52..ef0f21e7 100644 --- a/src/globalGroups.ts +++ b/src/globalGroups.ts @@ -36,7 +36,7 @@ export default defineGkdGlobalGroups([ ], matches: '[childCount=0][visibleToUser=true][(text.length<10 && (text*="跳过" || text*="跳過" || text~="(?is).*skip.*")) || id$="tt_splash_skip_btn" || vid~="(?is).*skip.*" || (vid~="(?is).*count.*" && vid~="(?is).*down.*" && vid!~="(?is).*load.*" && vid!~="(?is).*time.*" && vid!~="(?is).*hour.*" && vid!~="(?is).*minute.*" && vid!~="(?is).*second.*" && vid!~="(?is).*timing.*" && vid!~="(?is).*add.*" && vid!~="(?is).*ead.*" && text!~="([01]?[0-9]|2[0-3])[::][0-5][0-9]") || (desc.length<10 && (desc*="跳过" || desc*="跳過" || desc~="(?is).*skip.*"))]', - snapshotUrls: [ + excludeSnapshotUrls: [ // 避免误触 'https://i.gkd.li/i/16742932', // vid!~="(?is).*timing.*" ],