We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ac9ed5 commit 3120846Copy full SHA for 3120846
1 file changed
.github/workflows/list-status.yaml
@@ -0,0 +1,27 @@
1
+name: List All Statuses
2
+
3
+on:
4
+ pull_request:
5
+ branches: [ "main" ]
6
+ workflow_dispatch:
7
8
+jobs:
9
+ list-statuses:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v3
14
15
+ - name: List legacy commit statuses (plural endpoint)
16
+ run: |
17
+ COMMIT_SHA="${{ github.sha }}"
18
+ REPO="${{ github.repository }}"
19
+ echo "Fetching legacy statuses for commit: $COMMIT_SHA in $REPO"
20
21
+ curl -s -H "Accept: application/vnd.github.v3+json" \
22
+ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
23
+ "https://api.github.com/repos/$REPO/commits/$COMMIT_SHA/statuses" | jq .
24
25
+ - name: List combined status (legacy statuses summary)
26
27
0 commit comments