-
Notifications
You must be signed in to change notification settings - Fork 9.1k
36 lines (31 loc) · 1.12 KB
/
inactive-issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on:
issues:
types: labeled
workflow_dispatch:
schedule:
- cron: '*/5 * * * *'
permissions:
issues: write
contents: read
name: Label and close issues with no recent activity
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEEDS_ATTENTION_LABEL: "Needs attention"
NEEDS_AUTHOR_FEEDBACK_LABEL: "Needs author feedback"
NO_RECENT_ACTIVITY_LABEL: "No recent activity"
NO_RECENT_ACTIVITY_DURATION_IN_DAYS: 7
NO_RECENT_ACTIVITY_DURATION_CLOSE_IN_DAYS: 28
ORG_NAME: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
NO_RECENT_ACTIVITY_COMMENT: "This issue has been labeled with `No recent activity` because there has been no recent activity. It will be closed if no further activity occurs within 28 days. Please re-open this issue or open a new one after this delay if you need to."
jobs:
run:
if: github.repository == 'OAI/OpenAPI-Specification'
runs-on: ubuntu-latest
name: Label issues with no recent activity
steps:
- uses: actions/checkout@v4
- run: scripts/label-no-recent.ps1
shell: pwsh
- run: scripts/close-no-recent.ps1
shell: pwsh