Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f4b677e

Browse files
asadoughiabhinavdangeti
authored andcommittedJul 12, 2024
Create autoclose GHA workflow (facebookresearch#3614)
Summary: After a reviewer labels the issue as "autoclose", issues will be labeled as "stale" after 7 days of no update and close after an additional 7 days. See https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues and https://github.com/marketplace/actions/close-stale-issues Pull Request resolved: facebookresearch#3614 Reviewed By: junjieqi Differential Revision: D59411424 Pulled By: asadoughi fbshipit-source-id: d79f173de900d5aec53d01c77e8ddc9a8312c12c
1 parent 3544eb5 commit f4b677e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
 

‎.github/workflows/autoclose

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
only-labels: autoclose
16+
labels-to-remove-when-unstale: autoclose
17+
days-before-issue-stale: 7
18+
days-before-issue-close: 7
19+
stale-issue-label: "stale"
20+
stale-issue-message: "This issue is stale because it has been open for 7 days with no activity."
21+
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
22+
days-before-pr-stale: -1
23+
days-before-pr-close: -1
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.