Skip to content

Commit c9d1684

Browse files
authored
chore: add test workflow for check_suite event (#32990)
I suspect that `check_suite` is a useful event to use for the PR linter. Add a workflow that will trigger on `check_suite` and prints some relevant information, so we can spy on. This workflow was created by AI, we'll see how it does. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 776620d commit c9d1684

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
name: Check Suite Logger
3+
4+
on:
5+
check_suite:
6+
types: [completed]
7+
8+
jobs:
9+
log-check-suite:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Log check suite event details
14+
run: |
15+
echo "Check Suite ID: ${{ github.event.check_suite.id }}"
16+
echo "Status: ${{ github.event.check_suite.status }}"
17+
echo "Conclusion: ${{ github.event.check_suite.conclusion }}"
18+
echo "URL: ${{ github.event.check_suite.url }}"
19+
echo "Head Branch: ${{ github.event.check_suite.head_branch }}"
20+
echo "Head SHA: ${{ github.event.check_suite.head_sha }}"
21+
echo "Repository: ${{ github.event.repository.full_name }}"
22+
echo "Sender: ${{ github.event.sender.login }}"
23+
echo "Created At: ${{ github.event.check_suite.created_at }}"
24+
echo "Updated At: ${{ github.event.check_suite.updated_at }}"
25+
echo "Pull Requests: ${{ toJson(github.event.check_suite.pull_requests) }}"

0 commit comments

Comments
 (0)