Skip to content

Close stale issues and PRs #817

Close stale issues and PRs

Close stale issues and PRs #817

Workflow file for this run

name: Close stale issues and PRs
on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
issue_comment:
types: [created]
push:
branches:
- "**"
jobs:
stale:
if: github.event_name != 'push' || github.event.head_commit.message != 'Merge'
runs-on: ubuntu-latest
steps:
- id: create_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/stale@v9
with:
stale-issue-message: "This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 7 days."
stale-pr-message: "This PR is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 11 days."
close-issue-message: "This issue was closed because it has been stale for 17 days with no activity."
close-pr-message: "This PR was closed because it has been stale for 14 days with no activity."
days-before-issue-stale: 10
days-before-pr-stale: 3
days-before-issue-close: 17
days-before-pr-close: 14
exempt-pr-labels: not-stale
exempt-issue-labels: not-stale
stale-pr-label: "Awaiting Response"
repo-token: ${{ steps.create_token.outputs.token }}