Skip to content

Sign in to SQL Server with an access token file #670

Sign in to SQL Server with an access token file

Sign in to SQL Server with an access token file #670

Workflow file for this run

name: Stale PRs and Issues

Check warning on line 1 in .github/workflows/stale.yaml

View workflow run for this annotation

GitHub Actions / Stale PRs and Issues

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
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.