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

ci: Add github stale action #3929

Merged
merged 2 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
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
23 changes: 0 additions & 23 deletions .github/stale.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Close stale PRs
on:
schedule:
- cron: "30 1 * * *"
pull_request:
paths: [.github/workflows/stale.yml]
branches: [main]

jobs:
stale:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/stale@v8
with:
stale-pr-message: >
This PR has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
days-before-pr-stale: 60
days-before-pr-close: 7
days-before-issue-stale: -1
days-before-issue-close: -1
exempt-pr-labels: ops-backlog,status/needs_team_discussion,status/on_hold
stale-pr-label: status/stale

# Perform a dry-run if the workflow was changed in a PR
debug-only: ${{ github.event_name == 'pull_request' }}

# The github API rate limit isn't as much of a concern in debug mode. See
# https://github.com/actions/stale#debugging.
operations-per-run: ${{ github.event_name == 'pull_request' && 100 || 30 }}