Skip to content

Commit 43aeabc

Browse files
committed
chore(ci): update workflows
1 parent 6385e2c commit 43aeabc

2 files changed

Lines changed: 17 additions & 11 deletions

File tree

.github/workflows/require-checklist.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
name: Require Checklist
22

33
on:
4-
pull_request: ~
5-
issues: ~
4+
pull_request:
5+
types: [opened, edited, synchronize]
6+
issues:
7+
types: [opened, edited, deleted]
68

79
jobs:
810
check-tasks:
911
runs-on: ubuntu-latest
10-
if: github.event.pull_request.user.login != 'dependabot[bot]' and github.event.pull_request.user.login != 'olimorris' and github.event.pull_request.draft == false
12+
if: |
13+
(github.event_name == 'pull_request' &&
14+
github.event.pull_request.user.login != 'dependabot[bot]' &&
15+
github.event.pull_request.user.login != 'olimorris' &&
16+
github.event.pull_request.draft == false) ||
17+
(github.event_name == 'issues')
1118
steps:
1219
- uses: mheap/require-checklist-action@v2
1320
with:

.github/workflows/stale.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update stale Issues and PRs
1+
name: Update stale issues and PRs
22

33
on:
44
workflow_dispatch:
@@ -9,14 +9,13 @@ jobs:
99
stale:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/stale@v9
12+
- uses: actions/stale@v10
1313
with:
14-
exempt-issue-labels: P1,P2,P3,P4
15-
days-before-stale: 30
16-
days-before-close: 3
17-
# never stale pull requests
18-
days-before-pr-close: -1
19-
# messages
14+
exempt-issue-labels: P1,P2
15+
days-before-issue-stale: 10
16+
days-before-issue-close: 5
17+
days-before-pr-stale: 30
18+
days-before-pr-close: -1 # Never close PRs
2019
stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity. Remove the stale label or comment or this will be closed in 3 days.'
2120
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity.'
2221
close-issue-message: 'This issue was closed because it was stalled for 3 days with no activity.'

0 commit comments

Comments
 (0)