Skip to content

Commit

Permalink
Merge pull request #5 from embrace-io/paolostancato/stale-workflow
Browse files Browse the repository at this point in the history
GHA worflows - Use independent stale workflow
  • Loading branch information
paolostancato authored Jun 6, 2024
2 parents eace988 + bc693f0 commit 04dbb83
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
name: "Close Stale PRs"

on:
workflow_call:
workflow_dispatch:
schedule:
- cron: "30 1 * * *"

env:
days-before-pr-stale: 20
days-before-pr-close: 10
operations-per-run: 100

permissions:
issues: write
pull-requests: write

jobs:
stale:
uses: embrace-io/actions/.github/workflows/stale.yaml@master
secrets: inherit
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
exempt-pr-labels: "dependencies"
stale-issue-label: "stale"
stale-pr-label: "stale"
stale-pr-message: "This PR is stale because it has been open ${{ env.days-before-pr-stale }} days with no activity. Remove stale label or comment or this PR will be closed in ${{ env.days-before-pr-close }} days."
close-pr-message: "This PR was closed due to inactivity."
days-before-pr-stale: ${{ env.days-before-pr-stale }}
days-before-pr-close: ${{ env.days-before-pr-close }}
operations-per-run: ${{ env.operations-per-run }}

0 comments on commit 04dbb83

Please sign in to comment.