Skip to content

Automatically label stale PRs #3064

@isaac-chung

Description

@isaac-chung

https://github.com/actions/stale

With something like:

name: Close stale issues and PRs
on:
  schedule:
    - cron: '30 1 * * *' # runs daily at 1:30 AM
jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v9
        with:
          stale-pr-label: 'stale'
          pull-request-days-before-stale: 30
          pull-request-days-before-close: 10
          exempt-pr-labels: 'work-in-progress,awaiting-review'
          stale-pr-message: 'This pull request has been automatically marked as stale due to inactivity.'

Stale PRs will also be closed after certain days of inactivity.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions