chore: add autoclose of issues without requested info (#2955)

* chore: add autoclose of issues without requested info

Same as ba6f78b1af

- autocloses issues 14 days after the issue was labeled with NEEDSINFO label and now update (comment)

example of it can be seen here: https://github.com/get-aurora-dev/common/issues/281

* concurrency and properly named job

* make zizmor happy

---------

Co-authored-by: renner <renner0@posteo.de>
This commit is contained in:
inffy 2026-09-29 17:25:39 +03:00 committed by GitHub
parent 458f8aef22
commit a723f1eda8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

36
.github/workflows/needinfo-close.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Close Inactive Tagged Issues
on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight UTC
workflow_dispatch: # Allows manual testing via the Actions tab
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions: {}
jobs:
close-issues-without-info:
name: Close issues without info
runs-on: ubuntu-slim
permissions:
issues: write # posts comments on issues
steps:
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
with:
# Only process issues that carry this specific label
only-issue-labels: 'NEEDSINFO'
# By treating your tag as the stale marker, it closes after X days of inactivity
stale-issue-label: 'NEEDSINFO'
days-before-issue-stale: -1 # Prevents adding any other stale label
days-before-issue-close: 14 # Closes 14 day after the label was added with no activity
# Prevents PRs from being processed or closed
days-before-pr-stale: -1
days-before-pr-close: -1
close-issue-message: 'This issue was closed because requested info was not provided.'
close-issue-reason: 'not_planned'