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

meta: merge stalebot and update timings/messages #52712

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
56 changes: 0 additions & 56 deletions .github/workflows/close-stale-feature-requests.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/close-stale-pull-requests.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/close-stale.yml
@@ -0,0 +1,46 @@
name: Close stale pull requests
on:
workflow_dispatch:
schedule:
# Run every day at 1:00 AM UTC.
- cron: 0 1 * * *
# yamllint disable rule:empty-lines
env:
CLOSE_MESSAGE: >
There hasn't been any activity on this issue/PR for over 8 months.
We appreciate your contribution, but since there hasn't been any
progress recently, we're closing it. If you disagree with this
decision, please leave a comment.

WARN_MESSAGE: >
There hasn't been any activity on this issue/PR for over 8 months.
RedYetiDev marked this conversation as resolved.
Show resolved Hide resolved
We appreciate your contribution, but since there hasn't been any
progress recently, we're closing it in **30 days**. If you
disagree with this decision, please leave a comment.
# yamllint enable

permissions:
contents: read
issues: write
pull-requests: write

jobs:
stale:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9.0.0
RedYetiDev marked this conversation as resolved.
Show resolved Hide resolved
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 240
days-before-close: 30
close-issue-message: ${{ env.CLOSE_MESSAGE }}
stale-issue-message: ${{ env.WARN_MESSAGE }}
close-pr-message: ${{ env.CLOSE_MESSAGE }}
stale-pr-message: ${{ env.WARN_MESSAGE }}
exempt-issue-labels: never-stale
exempt-pr-labels: never-stale
stale-issue-label: stale
stale-pr-label: stale
operations-per-run: 500
remove-stale-when-updated: true