mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-17 15:25:08 +08:00
feat: new workflows
This commit is contained in:
30
.github/workflows/add_labels.yml
vendored
Normal file
30
.github/workflows/add_labels.yml
vendored
Normal file
@@ -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!
|
||||
25
.github/workflows/issue_close_question.yml
vendored
Normal file
25
.github/workflows/issue_close_question.yml
vendored
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user