-
-
Notifications
You must be signed in to change notification settings - Fork 295
chore: auto-close stale release PRs after 3 hours of inactivity #9655
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
base: main
Are you sure you want to change the base?
Changes from all commits
c2fbff1
0fd851f
d9cf151
e0f1468
6495138
1538aed
0c750f5
792c39e
7c1b13c
9033954
365060a
624f814
41a0728
a2ccde0
364d420
f2e984d
12e7ee4
3f8f445
a9dfaae
3457b77
7a05448
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,36 @@ | ||||||
| name: Close Stale Release PRs | ||||||
|
|
||||||
| # Release PRs on `release/*` branches are expected to merge quickly. Abandoned | ||||||
| # ones block other engineers from starting a new release. This workflow closes | ||||||
| # inactive release PRs, leaves a comment, and deletes the branch. | ||||||
| on: | ||||||
| schedule: | ||||||
| # Check twice an hour so the 3h window is reasonably precise. | ||||||
| - cron: '*/30 * * * *' | ||||||
| workflow_dispatch: | ||||||
|
|
||||||
| permissions: | ||||||
| contents: read | ||||||
|
|
||||||
| concurrency: | ||||||
| group: close-stale-release-prs | ||||||
| cancel-in-progress: false | ||||||
|
|
||||||
| jobs: | ||||||
| close-stale-release-prs: | ||||||
| name: Close stale release PRs | ||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
| steps: | ||||||
| - name: Checkout and setup environment | ||||||
| uses: MetaMask/action-checkout-and-setup@v3 | ||||||
| with: | ||||||
| is-high-risk-environment: false | ||||||
| persist-credentials: false | ||||||
| cache-node-modules: true | ||||||
|
Comment on lines
+31
to
+32
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need these two options?
Suggested change
|
||||||
| - name: Close inactive release PRs | ||||||
| env: | ||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
| run: yarn tsx scripts/close-stale-release-prs.mts | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think this is the default: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#concurrency