Skip to content

Commit 4800dc2

Browse files
added new github workflows
1 parent c49fc06 commit 4800dc2

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed

.github/workflows/lock.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Configuration for Lock Threads - https://github.com/dessant/lock-threads
2+
3+
name: 'Lock Threads'
4+
5+
# By specifying the access of one of the scopes, all of those that are not
6+
# specified are set to 'none'.
7+
permissions:
8+
issues: write
9+
10+
on:
11+
schedule:
12+
- cron: '0 0 * * *' # Run every day at midnight
13+
14+
jobs:
15+
lock:
16+
permissions:
17+
issues: write
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: dessant/[email protected]
21+
with:
22+
process-only: 'issues'
23+
github-token: ${{ github.token }}
24+
# Number of days of inactivity before a closed issue is locked.
25+
issue-inactive-days: 14
26+
issue-comment: >
27+
This thread has been automatically locked since there has not been
28+
any recent activity after it was closed. If you are still experiencing a
29+
similar issue, please open a new bug and a minimal reproduction of the issue.

.github/workflows/no-response.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
name: No Response
3+
4+
# Both `issue_comment` and `scheduled` event types are required for this Action
5+
# to work properly.
6+
on:
7+
issue_comment:
8+
types: [created]
9+
schedule:
10+
- cron: '0 0 * * *' # Run every day at midnight
11+
12+
# By specifying the access of one of the scopes, all of those that are not
13+
# specified are set to 'none'.
14+
permissions:
15+
issues: write
16+
17+
jobs:
18+
noResponse:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: godofredoc/no-response@0ce2dc0e63e1c7d2b87752ceed091f6d32c9df09
22+
with:
23+
token: ${{ github.token }}
24+
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
25+
closeComment: >
26+
Without additional information, we are unfortunately not sure how to
27+
resolve this issue. We are therefore reluctantly going to close this
28+
bug for now.
29+
30+
If you find this problem please file a new issue with the same description,
31+
what happens and logs. It's always better to open new issues and reference
32+
the related ones.
33+
34+
Thanks for your contribution.
35+
# Number of days of inactivity before an issue is closed for lack of response.
36+
daysUntilClose: 21
37+
# Label requiring a response.
38+
responseRequiredLabel: "waiting for customer response"

.github/workflows/stale.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Close Stale Issues
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Run every day at midnight
6+
7+
jobs:
8+
close-issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- name: Close stale issues
14+
uses: actions/stale@v5
15+
with:
16+
days-before-issue-stale: 365
17+
days-before-issue-close: 0
18+
stale-issue-label: "stale"
19+
stale-issue-message: "This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it."
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)