Skip to content

Commit 70e0767

Browse files
authored
ci: ci: create gh workflow that updates sorted pr checks (#11861)
* ci: create gh workflow that updates sorted pr checks * ci: use grouped_by_result template for pr checks sticky comment * chore: apply pr review suggestion
1 parent 06761db commit 70e0767

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Comment with sorted PR checks
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
pull_number:
7+
description: 'Pull request number'
8+
required: true
9+
workflow_run:
10+
workflows:
11+
- Build
12+
- Check
13+
- CodeQL
14+
- Test
15+
types:
16+
- requested
17+
- completed
18+
19+
permissions:
20+
pull-requests: write
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number || 'unknown' }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
comment:
28+
if: github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0]
29+
uses: ipdxco/sorted-pr-checks/.github/workflows/comment.yml@v1
30+
with:
31+
pull_number: ${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number }}
32+
template: unsuccessful_only

0 commit comments

Comments
 (0)