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

PoC - Staleness action for Element team PRs #5742

Closed
wants to merge 1 commit into from
Closed
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
20 changes: 20 additions & 0 deletions .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Close stale issues and PRs'
on:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be swapped to an hourly cron if approved

pull_request: { }
push:
branches: [ feature/adm/stale-prs ]

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: sonia-corporation/stale@1.54.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uses a staleness action fork to allow for only checking PRs instead of PRs and issues which causes the rate limit to be hit due to our large amount of issues

with:
dry-run: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be removed if we're happy with the output

issue-processing: false
pull-request-days-before-stale: 30
pull-request-days-before-close: 14
pull-request-stale-label: Z-Stale
pull-request-stale-comment: 'PR marked as stale due to 30 days of inactivity and will be closed in 14 days if there is no further activity. Comment or commit to reset the inactivity counter'
pull-request-ignore-any-labels: |
Z-Community-PR