mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
A daily job lists open issues not updated for 60 days, except those labeled notice or enhancement, and closes up to 100 of them as not planned with a comment; there are 220 such issues today, the oldest from 2024.
28 lines
785 B
YAML
28 lines
785 B
YAML
name: Stale Issues
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "17 3 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
jobs:
|
|
close:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Close issues with no activity for 60 days
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
GH_REPO: ${{ github.repository }}
|
|
run: |
|
|
since=$(date -u -d '60 days ago' +%F)
|
|
gh issue list --state open --limit 100 --json number \
|
|
--search "updated:<$since -label:notice -label:enhancement" \
|
|
--jq '.[].number' |
|
|
while read -r n; do
|
|
gh issue close "$n" --reason "not planned" \
|
|
--comment "Closed: no activity for 60 days. Reopen or open a new issue if it still happens on the current release."
|
|
done
|