Skip to content

Commit 0f4d4c0

Browse files
committed
feat(actions): Added project management actions
1 parent df6ea98 commit 0f4d4c0

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on:
2+
issue_comment:
3+
types: [created]
4+
5+
jobs:
6+
handle_new_issue_comment:
7+
runs-on: ubuntu-latest
8+
name: Handle new issue comment
9+
steps:
10+
- name: Toggle awaiting-reply label
11+
uses: jd-0001/[email protected]
12+
with:
13+
label: awaiting-reply
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
issues:
3+
types: [opened]
4+
5+
jobs:
6+
handle_new_issue:
7+
runs-on: ubuntu-latest
8+
name: Handle new issue
9+
steps:
10+
- name: Find duplicates
11+
uses: wow-actions/[email protected]
12+
with:
13+
GITHUB_TOKEN: ${{ github.token }}
14+
label: duplicate
15+
comment: >
16+
Potential duplicates: {{#issues}}
17+
- #{{ number }} _({{ accuracy }}% Match)_
18+
{{/issues}}

.github/workflows/issue-staler.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v4
11+
with:
12+
stale-issue-message: 'This issue has been automatically marked as stale because its has not had recent activity. It will be closed if no further activity occurs. Thank you for raising the concern.'
13+
close-issue-message: 'This issue has been automatically marked as closed because it has not had recent activity.'
14+
stale-issue-label: 'stale'
15+
only-labels: 'awaiting-reply'
16+
exempt-issue-labels: 'feat-req,triage'
17+
days-before-stale: 10
18+
days-before-close: 7

0 commit comments

Comments
 (0)