Skip to content

ci: centralize stale and fix add-to-triage #188

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

Merged
merged 4 commits into from
Aug 13, 2025
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
4 changes: 2 additions & 2 deletions .github/workflows/add-to-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- reopened
- transferred

pull_request:
pull_request_target:
types:
- opened
- reopened
Expand All @@ -16,4 +16,4 @@ jobs:
add-to-triage:
uses: eslint/workflows/.github/workflows/add-to-triage.yml@main
secrets:
PROJECT_BOT_TOKEN: ${{ secrets.PROJECT_BOT_TOKEN }}
project_bot_token: ${{ secrets.PROJECT_BOT_TOKEN }}
33 changes: 7 additions & 26 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
# 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
name: stale

on:
schedule:
- cron: '31 22 * * *'
schedule:
- cron: "31 22 * * *" # Runs every day at 10:31 PM UTC

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 60
days-before-close: 7
stale-issue-message: 'Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update.'
stale-pr-message: 'Oops! It looks like we lost track of this pull request. What do we want to do here? This pull request will auto-close in 7 days without an update.'
exempt-all-assignees: true
exempt-issue-labels: accepted
exempt-pr-labels: accepted
stale:
uses: eslint/workflows/.github/workflows/stale.yml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
Loading