Skip to content

Mark stale issues and pull requests #80

Mark stale issues and pull requests

Mark stale issues and pull requests #80

Workflow file for this run

# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
permissions:
contents: read
jobs:
stale:
permissions:
issues: write
pull-requests: write
name: Track and close stale issues/PRs
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- name: Track and close stale issues/PRs
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: 430
days-before-pr-stale: 430
days-before-issue-close: 90
days-before-pr-close: 90
stale-issue-message: >
Thank you for contributing to the Bazel repository!
This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90
days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale.
close-issue-message: >
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please post `@bazelbuild/triage` in a comment here and we'll take a look. Thanks!
stale-pr-message: >
Thank you for contributing to the Bazel repository!
This pull request has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next
90 days unless any other activity occurs. If you think this PR is still relevant and should stay open, please post any comment here and the PR will no longer be marked as stale.
close-pr-message: >
This pull request has been automatically closed due to inactivity. If you're still interested in pursuing this, please post `@bazelbuild/triage` in a comment here and we'll take a look. Thanks!
stale-issue-label: 'stale'
exempt-issue-labels: 'not stale,awaiting-bazeler,untriaged,P0,P1,P2,good first issue,help wanted'
close-issue-reason: "not_planned"
stale-pr-label: 'stale'
exempt-pr-labels: 'not stale,awaiting-review,awaiting-PR-merge,P0,P1,P2'
exempt-draft-pr: true
operations-per-run: 500
ascending: true