mirror of
https://github.com/nlohmann/json.git
synced 2026-11-02 10:55:35 +00:00
GitHub is moving the ubuntu-latest label from Ubuntu 24.04 to 26.04 between October 19 and November 19, 2026 (actions/runner-images#14748). Pin every ubuntu-latest job to ubuntu-26.04 so the switch does not change the toolchain under our jobs, and so the behaviour does not depend on when GitHub reaches our runs. Jobs pinned to ubuntu-24.04 and ubuntu-24.04-arm are unchanged. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
35 lines
1.7 KiB
YAML
35 lines
1.7 KiB
YAML
name: 'Comment and close stale issues and PR'
|
||
on:
|
||
schedule:
|
||
- cron: '0 0 * * *'
|
||
|
||
permissions:
|
||
contents: read
|
||
|
||
jobs:
|
||
stale:
|
||
runs-on: ubuntu-26.04
|
||
|
||
permissions:
|
||
issues: write
|
||
pull-requests: write
|
||
|
||
steps:
|
||
- name: Harden Runner
|
||
uses: step-security/harden-runner@dc2769abcc0fcfbadfc1df54081c1608579ef6b2 # v2.22.2
|
||
with:
|
||
egress-policy: audit
|
||
|
||
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
|
||
with:
|
||
stale-issue-label: 'state: stale'
|
||
stale-pr-label: 'state: stale'
|
||
exempt-issue-labels: 'pinned,security'
|
||
stale-issue-message: 'This issue has been marked as stale because it has been open for 90 days without activity. If this issue is still relevant, please add a comment or remove the "stale" label. Otherwise, it will be closed in 10 days. Thank you for helping us prioritize our work!'
|
||
stale-pr-message: 'This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions!'
|
||
close-issue-message: 'This issue has been closed after being marked as stale for 10 days without any further activity. If this was done in error or the issue is still relevant, please feel free to reopen it or create a new issue. We appreciate your understanding and contributions.'
|
||
days-before-stale: 90
|
||
days-before-pr-stale: 30
|
||
days-before-close: 10
|
||
days-before-pr-close: -1
|