This commit is contained in:
JD Solanki
2022-02-18 18:17:36 +05:30
commit 5ae83eae87
4 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
name: 'Handle new issue comment'
on:
issue_comment:
types: [created]
jobs:
handle_new_issue_comment:
runs-on: ubuntu-latest
name: Handle new issue comment
steps:
- name: Toggle awaiting-reply label
uses: jd-0001/gh-action-toggle-awaiting-reply-label@v2.0.0
with:
label: awaiting-reply

19
.github/workflows/handle-new-issue.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: 'Handle new issue'
on:
issues:
types: [opened]
jobs:
handle_new_issue:
runs-on: ubuntu-latest
name: Handle new issue
steps:
- name: Find duplicates
uses: wow-actions/potential-duplicates@v1.0.8
with:
GITHUB_TOKEN: ${{ github.token }}
label: duplicate
comment: >
Potential duplicates: {{#issues}}
- #{{ number }} _({{ accuracy }}% Match)_
{{/issues}}

18
.github/workflows/issue-staler.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
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.'
close-issue-message: 'This issue has been automatically marked as closed because it has not had recent activity.'
stale-issue-label: 'stale'
only-labels: 'awaiting-reply'
exempt-issue-labels: 'triage'
days-before-stale: 7
days-before-close: 7