Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA worflows - Use independent stale workflow #162

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading