Skip to content

Commit

Permalink
[Feature] Add some github actions for issue management (#28)
Browse files Browse the repository at this point in the history
* Create auto-reply.yml

* Update auto-reply.yml

* Fix linting

* Changes to be committed:
	new file:   add-assignees.yml
	modified:   auto-reply.yml
	new file:   check-inactive.yml
	new file:   close-issues.yml
	new file:   find-comments.yml
	new file:   find-issues.yml
	new file:   git-issue-info.yml

* Changes to be committed:
	modified:   auto-reply.yml
	modified:   find-comments.yml

* Changes to be committed:
	modified:   find-comments.yml
	deleted:    find-issues.yml
	deleted:    git-issue-info.yml

* new file:   Issue-Month-Statistics.yml
	new file:   desktop
	modified:   find-comments.yml
	new file:   welcome.yml

* Changes to be committed:
	deleted:    .github/workflows/desktop

* Changes to be committed:
	new file:   .github/workflows/find-issues.yml

* Changes to be committed:
	modified:   .github/workflows/auto-reply.yml
	modified:   .github/workflows/welcome.yml

* Changes to be committed:
	deleted:    .github/workflows/.find-comments.yml.swp

* Changes to be committed:
	modified:   .github/workflows/auto-reply.yml

* Changes to be committed:
	modified:   .github/workflows/auto-reply.yml

* Changes to be committed:
	modified:   auto-reply.yml

* Changes to be committed:
	modified:   auto-reply.yml

* Changes to be committed:
	modified:   .github/workflows/Issue-Month-Statistics.yml
	modified:   .github/workflows/auto-reply.yml
	deleted:    .github/workflows/welcome.yml

* Changes to be committed:
	new file:   .github/workflows/auto-welcome.yml

* Changes to be committed:
	modified:   .github/workflows/auto-welcome.yml

* Changes to be committed:
	modified:   .github/workflows/auto-reply.yml
	modified:   .github/workflows/auto-welcome.yml

* Changes to be committed:
	modified:   .github/workflows/auto-reply.yml
	modified:   .github/workflows/auto-welcome.yml

* Changes to be committed:
	modified:   .github/workflows/auto-reply.yml
	modified:   .github/workflows/auto-welcome.yml

* Changes to be committed:
	modified:   .github/workflows/auto-reply.yml
	modified:   .github/workflows/auto-welcome.yml

* Changes to be committed:
	modified:   .github/workflows/Issue-Month-Statistics.yml
	modified:   .github/workflows/auto-reply.yml
	modified:   .github/workflows/auto-welcome.yml
	modified:   .github/workflows/check-inactive.yml
	modified:   .github/workflows/close-issues.yml
	modified:   .github/workflows/find-comments.yml
	modified:   .github/workflows/find-issues.yml

* Changes to be committed:
	modified:   .github/workflows/auto-welcome.yml

* Changes to be committed:
	modified:   .github/workflows/auto-reply.yml

* Changes to be committed:
	modified:   .github/workflows/auto-reply.yml

* Your branch is up to date with 'origin/tonylu0728-patch-1'.

* Changes to be committed:
	modified:   .github/workflows/auto-welcome.yml

* modified:   .github/workflows/auto-reply.yml

* Changes to be committed:
	renamed:    .github/workflows/auto-reply.yml -> .github/workflows/issue-reply.yml
	renamed:    .github/workflows/auto-welcome.yml -> .github/workflows/issue-welcome.yml

* modified:   .github/workflows/issue-reply.yml
	modified:   .github/workflows/issue-welcome.yml

* modified:   .github/workflows/issue-reply.yml
	modified:   .github/workflows/issue-welcome.yml

* modified:   .github/workflows/issue-reply.yml
	modified:   .github/workflows/issue-welcome.yml

* modified:   .github/workflows/issue-reply.yml

* modified:   .github/workflows/issue-reply.yml
	modified:   .github/workflows/issue-welcome.yml

* Changes to be committed:
	renamed:    .github/workflows/Issue-Month-Statistics.yml -> .github/workflows/issue-statistics.yml

* Fix typo

* Upgrade flake8 version in pre-commit

Co-authored-by: yl-1993 <[email protected]>
  • Loading branch information
tonylu0728 and yl-1993 authored Oct 9, 2022
1 parent 92f1f6f commit 1d02098
Show file tree
Hide file tree
Showing 9 changed files with 141 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/add-assignees.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Add Assignees

on:
issues:
types: [opened, edited]

jobs:
add-assigness:
runs-on: ubuntu-latest
steps:
- name: Add assigness
uses: actions-cool/issues-helper@v3
with:
actions: 'add-assignees'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
assignees: 'aichunling0418,LazyBusyYang,tonylu0728,yl-1993'
random-to: 1
16 changes: 16 additions & 0 deletions .github/workflows/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/[email protected]
with:
actions: 'check-inactive'
token: ${{ secrets.GITHUB_TOKEN }}
inactive-day: 30
16 changes: 16 additions & 0 deletions .github/workflows/close-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check Issues

on:
schedule:
- cron: "0 0 */7 * *"

jobs:
check-need-info:
runs-on: ubuntu-latest
steps:
- name: close-issues
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
token: ${{ secrets.GITHUB_TOKEN }}
inactive-day: 60
18 changes: 18 additions & 0 deletions .github/workflows/find-comments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Find Comments

on:
schedule:
- cron: "0 0 */2 * *"

jobs:
check-comments:
runs-on: ubuntu-latest
steps:
- name: Find comments
uses: actions-cool/[email protected]
with:
actions: 'find-comments'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: 'true'
comment-auth: 'true'
body-includes: 'true'
16 changes: 16 additions & 0 deletions .github/workflows/find-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Find Issues

on:
schedule:
- cron: "0 0 */2 * *"

jobs:
check-comments:
runs-on: ubuntu-latest
steps:
- name: Find issues
uses: actions-cool/issues-helper@v3
with:
actions: 'find-issues'
token: ${{ secrets.GITHUB_TOKEN }}
issue-state: 'open'
20 changes: 20 additions & 0 deletions .github/workflows/issue-reply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Issue Reply

on:
issues:
types: [labeled]

jobs:
reply-helper:
runs-on: ubuntu-latest
steps:
- name: help wanted
if: github.event.label.name == 'help wanted'
uses: actions-cool/[email protected]
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}, welcome to commit your issue here. We will check and reply to you as soon as possible.
你好 @${{ github.event.issue.user.login }},非常欢迎提交你的问题和需求,我们会尽快确认并回复你。
17 changes: 17 additions & 0 deletions .github/workflows/issue-statistics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Issue Month Statistics

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

jobs:
month-statistics:
runs-on: ubuntu-latest
steps:
- name: month-statistics
uses: actions-cool/[email protected]
with:
actions: 'month-statistics'
token: ${{ secrets.GITHUB_TOKEN }}
count-lables: 'true'
count-comments: 'true'
19 changes: 19 additions & 0 deletions .github/workflows/issue-welcome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Issue Welcome

on:
issues:
types: [opened]

jobs:
issue-welcome:
runs-on: ubuntu-latest
steps:
- name: welcome
uses: actions-cool/[email protected]
with:
actions: 'welcome'
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Hi @${{ github.event.issue.user.login }}, welcome to commit your first issue!
你好 @${{ github.event.issue.user.login }},非常欢迎首次提交你的问题!
issue-contents: 'eyes'
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: .*/tests/data/
repos:
- repo: https://gitlab.com/pycqa/flake8.git
rev: 3.8.3
rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/asottile/seed-isort-config.git
Expand Down

0 comments on commit 1d02098

Please sign in to comment.