forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: manage stale PRs (commaai#29367)
* CI: manage stale PRs * before_close * rename to ignore stale * no push * prod mode! --------- Co-authored-by: Justin Newberry <justin@comma.ai>
- Loading branch information
1 parent
4cae08e
commit 31ef352
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: stale | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
workflow_dispatch: | ||
|
||
env: | ||
DAYS_BEFORE_PR_CLOSE: 7 | ||
DAYS_BEFORE_PR_STALE: 30 | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
exempt-milestones: true | ||
|
||
# pull request config | ||
stale-pr-message: 'This PR has had no activity for ${{ env.DAYS_BEFORE_PR_STALE }} days. It will be automatically closed in ${{ env.DAYS_BEFORE_PR_CLOSE }} days if there is no activity.' | ||
close-pr-message: 'This PR has been automatically closed due to inactivity. Feel free to re-open once activity resumes.' | ||
delete-branch: ${{ github.event.pull_request.head.repo.full_name == 'commaai/openpilot' }} # only delete branches on the main repo | ||
exempt-pr-labels: "ignore stale,needs testing" # if wip or it needs testing from the community, don't mark as stale | ||
days-before-pr-stale: ${{ env.DAYS_BEFORE_PR_STALE }} | ||
days-before-pr-close: ${{ env.DAYS_BEFORE_PR_CLOSE }} | ||
|
||
# issue config | ||
days-before-issue-stale: -1 # ignore issues for now |