-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (35 loc) · 1.4 KB
/
Copy pathissues.yml
File metadata and controls
45 lines (35 loc) · 1.4 KB
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
37
38
39
40
41
42
43
44
45
name: 'Issues'
concurrency:
group: 'issues-${{ github.repository_owner }}-${{ github.event.repository.name }}'
cancel-in-progress: true # Allow only one concurrent workflow
on:
schedule:
- cron: '15 1 * * 1-5' # Run this workflow at minute 15 past hour 1 on every day-of-week from Monday through Friday
jobs:
# Process all open Issues
process_issues:
name: 'Process Issues'
runs-on: ubuntu-latest
# Set GITHUB_TOKEN required permissions
permissions:
pull-requests: write
issues: write
steps:
# - name: 'Process dependabot issues'
# id: dependabot
# # TODO: close dependabot issues for hotfix updates with ONE approval
- name: 'Process stale issues'
id: stale
uses: actions/stale@v7
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
stale-issue-message: 'Issue is stale and will be closed in 14 days unless there is new activity (hint: add stale-exempt label to keep it opened)'
stale-pr-message: 'Pull Request is stale and will be closed in 14 days unless there is new activity'
stale-issue-label: 'stale'
exempt-issue-labels: 'stale-exempt,enhancement'
stale-pr-label: 'stale'
exempt-pr-labels: 'stale-exempt'
remove-stale-when-updated: 'true'
operations-per-run: 500
days-before-stale: 7
days-before-close: 14