Skip to content

Commit

Permalink
cleanup stale (#1426)
Browse files Browse the repository at this point in the history

Co-authored-by: Trajan0x <[email protected]>
  • Loading branch information
trajan0x and trajan0x authored Oct 5, 2023
1 parent b7e2045 commit 969b1db
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Close stale issues and PRs'
name: 'Close stale issues, branches and PRs'
on:
schedule:
- cron: '30 1 * * *'
Expand All @@ -8,7 +8,7 @@ on:
- '.github/workflows/close-stale.yml'

jobs:
stale:
stale-prs:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
Expand All @@ -19,3 +19,13 @@ jobs:
days-before-pr-stale: 14
days-before-close: 5
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-branches:
name: Remove Stale Branches
runs-on: ubuntu-latest
steps:
- uses: fpicalausa/remove-stale-branches@v1
with:
operations-per-run: 50
days-before-branch-delete: 3
# yamllint disable-line
stale-branch-message: "@{author} Your branch [{branchName}]({branchUrl}) hasn't been updated in the last 60 days and is marked as stale. It will be removed in a week. If a pull request is open on this branch, you can ignore this message, you can always restore your branch on the pull request link. \r\nIf you want to keep this branch around, delete this comment or add new commits to this branch. "

0 comments on commit 969b1db

Please sign in to comment.