mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-17 23:34:57 +08:00
chore: Issue Content Checker
This commit is contained in:
2
.github/workflows/issue_close_question.yml
vendored
2
.github/workflows/issue_close_question.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3
|
||||||
with:
|
with:
|
||||||
actions: 'close-issues'
|
actions: 'close-issues'
|
||||||
labels: 'need info'
|
labels: 'invalid'
|
||||||
inactive-day: 3
|
inactive-day: 3
|
||||||
body: |
|
body: |
|
||||||
由于该 Issue 3 天未收到回应,现已被自动关闭,若有任何问题,可评论回复。
|
由于该 Issue 3 天未收到回应,现已被自动关闭,若有任何问题,可评论回复。
|
||||||
|
|||||||
56
.github/workflows/issue_content_checker.yml
vendored
56
.github/workflows/issue_content_checker.yml
vendored
@@ -7,35 +7,49 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
check-issue-content:
|
check-issue-content:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Add labels and comment based on issue content
|
- name: Add invalid label
|
||||||
id: process-issue
|
if: |
|
||||||
|
contains(github.event.issue.body, 'i.gkd.li/i/') == false &&
|
||||||
|
contains(github.event.issue.body, '.zip') == false &&
|
||||||
|
contains(github.event.issue.body, 'Uploading') == true &&
|
||||||
|
contains(github.event.issue.body, 'i.gkd.li/snapshot/') == true
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3
|
||||||
with:
|
with:
|
||||||
|
actions: 'add-labels'
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
issue-number: ${{ github.event.issue.number }}
|
||||||
|
labels: 'invalid'
|
||||||
|
|
||||||
|
- name: Comment 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: 'create-comment'
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-number: ${{ github.event.issue.number }}
|
issue-number: ${{ github.event.issue.number }}
|
||||||
actions: |
|
|
||||||
- type: condition
|
|
||||||
condition: "!contains(github.event.issue.body, 'i.gkd.li/i/') && !contains(github.event.issue.body, '.zip')"
|
|
||||||
do: |
|
|
||||||
- type: add-labels
|
|
||||||
labels: 'need info'
|
|
||||||
- type: create-comment
|
|
||||||
body: |
|
body: |
|
||||||
你好 ${{ github.event.issue.user.login }},检测到您没有提供快照,请补充必要的快照!
|
你好 ${{ github.event.issue.user.login }},检测到您没有提供快照,请补充必要的快照!
|
||||||
- type: condition
|
|
||||||
condition: "contains(toLowerCase(github.event.issue.body), 'uploading')"
|
- name: Comment for uploading failed
|
||||||
do: |
|
if: contains(github.event.issue.body, 'Uploading') == true
|
||||||
- type: add-labels
|
uses: actions-cool/issues-helper@v3
|
||||||
labels: 'need info'
|
with:
|
||||||
- type: create-comment
|
actions: 'create-comment'
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
issue-number: ${{ github.event.issue.number }}
|
||||||
body: |
|
body: |
|
||||||
你好 ${{ github.event.issue.user.login }},检测到您的文件上传失败,请在上传时等待文件前面的 Uploading 消失后再提交!
|
你好 ${{ github.event.issue.user.login }},检测到您的文件上传失败,请在上传时等待文件前面的 Uploading 消失后再提交!
|
||||||
- type: condition
|
|
||||||
condition: "contains(github.event.issue.body, 'i.gkd.li/snapshot/')"
|
- name: Comment for inaccessible snapshot links
|
||||||
do: |
|
if: contains(github.event.issue.body, 'i.gkd.li/snapshot/') == true
|
||||||
- type: add-labels
|
uses: actions-cool/issues-helper@v3
|
||||||
labels: 'need info'
|
with:
|
||||||
- type: create-comment
|
actions: 'create-comment'
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
issue-number: ${{ github.event.issue.number }}
|
||||||
body: |
|
body: |
|
||||||
你好 ${{ github.event.issue.user.login }},检测到您提供了他人无法访问的链接,请提供快照页面右上角生成的分享链接!
|
你好 ${{ github.event.issue.user.login }},检测到您提供了他人无法访问的链接,请提供快照页面右上角生成的分享链接!
|
||||||
|
|||||||
Reference in New Issue
Block a user