Repository navigation
Sign in to SQL Server with an access token file #670
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Stale PRs and Issues | ||
|
Check warning on line 1 in .github/workflows/stale.yaml
|
||
| on: | ||
| schedule: | ||
| - cron: '0 9 * * 1' # every Monday at 9am UTC | ||
| workflow_dispatch: | ||
| pull_request_target: | ||
| types: [synchronize] | ||
| permissions: | ||
| pull-requests: write | ||
| issues: write | ||
| jobs: | ||
| # Immediately drop the 'stale' and 'waiting-for-response' labels when new commits | ||
| # are pushed to a PR, so contributors don't wait until the next scheduled run. | ||
| unstale: | ||
| if: github.event_name == 'pull_request_target' | ||
| runs-on: ubuntu-24.04 | ||
| permissions: | ||
| pull-requests: write | ||
| steps: | ||
| - run: gh pr edit "$NUMBER" --remove-label stale --remove-label waiting-for-response --repo "$REPO" || true | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| NUMBER: ${{ github.event.pull_request.number }} | ||
| REPO: ${{ github.repository }} | ||
| stale: | ||
| if: github.event_name != 'pull_request_target' | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 | ||
| with: | ||
| start-date: '2026-04-08' | ||
| # Pull request | ||
| only-pr-labels: 'waiting-for-response' | ||
| days-before-stale: 30 | ||
| days-before-close: 30 | ||
| stale-pr-label: 'stale' | ||
| stale-pr-message: > | ||
| This PR has been inactive for 30 days. | ||
| It will be closed in 30 more days if there is no further activity. | ||
| Feel free to reopen if you'd like to continue working on it. | ||
| close-pr-message: > | ||
| Closed due to inactivity. Feel free to reopen if you'd like to pick this up again. | ||
| # Issues | ||
| days-before-issue-stale: 180 | ||
| days-before-issue-close: 30 | ||
| stale-issue-label: 'stale' | ||
| stale-issue-message: > | ||
| This issue has been inactive for 180 days. | ||
| It will be closed in 30 days if there is no further activity. | ||
| Feel free to reopen or comment if this is still relevant. | ||
| close-issue-message: > | ||
| Closed due to inactivity. Feel free to reopen if this is still relevant. | ||