Skip to content

Commit 7af0e39

Browse files
authored
Merge branch 'developerproductivity:main' into main
2 parents 6026874 + 62f2596 commit 7af0e39

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/list-status.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
sleep 3m
18+
COMMIT_SHA="${{ github.sha }}"
19+
REPO="${{ github.repository }}"
20+
echo "Fetching legacy statuses for commit: $COMMIT_SHA in $REPO"
21+
22+
curl -s -H "Accept: application/vnd.github.v3+json" \
23+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
24+
"https://api.github.com/repos/$REPO/commits/$COMMIT_SHA/statuses" | jq .
25+
26+
- name: List combined status (legacy statuses summary)
27+
run: |
28+
COMMIT_SHA="${{ github.sha }}"

0 commit comments

Comments
 (0)