Skip to content

Commit

Permalink
ci: new issue bot
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Aug 10, 2022
1 parent 669ccc4 commit fda4db7
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/issue_check_inactive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check inactive

on:
schedule:
- cron: "0 0 1 * *"

jobs:
check-inactive:
runs-on: ubuntu-latest
steps:
- name: check-inactive
uses: actions-cool/issues-helper@v3
with:
actions: 'check-inactive'
token: ${{ secrets.GITHUB_TOKEN }}
inactive-day: 30
3 changes: 2 additions & 1 deletion .github/workflows/issue_check_question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: close-issues
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
token: ${{ secrets.GITHUB_TOKEN }}
labels: 'question'
inactive-day: 7
close-reason: 'not_planned'
body: |
Hello @${{ github.event.issue.user.login }}, this issue was closed due to no activities in 7 days.
你好 @${{ github.event.issue.user.login }},此issue因超过7天未回复被关闭。
2 changes: 1 addition & 1 deletion .github/workflows/issue_duplicate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
Hello @${{ github.event.issue.user.login }}, your issue is a duplicate and will be closed.
你好 @${{ github.event.issue.user.login }},你的issue是重复的,将被关闭。
- name: Close issue
uses: Xhofe/issues-helper@main
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/issue_invalid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
Hello @${{ github.event.issue.user.login }}, your issue is invalid and will be closed.
你好 @${{ github.event.issue.user.login }},你的issue无效,将被关闭。
- name: Close issue
uses: Xhofe/issues-helper@main
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/issue_similarity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Issues Similarity Analysis

on:
issues:
types: [opened, edited]

jobs:
similarity-analysis:
runs-on: ubuntu-latest
steps:
- name: analysis
uses: actions-cool/issues-similarity-analysis@v1
with:
filter-threshold: 0.5
comment-title: '### See'
comment-body: '${index}. ${similarity} #${number}'
show-footer: false
show-mentioned: true
13 changes: 13 additions & 0 deletions .github/workflows/issue_translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Translation Helper

on:
pull_request_target:
types: [opened]
issues:
types: [opened]

jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/issue_wontfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
Hello @${{ github.event.issue.user.login }}, this issue will not be worked on and will be closed.
你好 @${{ github.event.issue.user.login }},这不会被处理,将被关闭。
- name: Close issue
uses: Xhofe/issues-helper@main
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fda4db7

Please sign in to comment.