File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8686 fi
8787 fi
8888
89- # Post the legacy context (required by current branch protection).
9089 gh api \
9190 --method POST \
9291 -H "Accept: application/vnd.github+json" \
9594 -f context="Outdated PR Check" \
9695 -f description="$DESCRIPTION" \
9796 || echo "Failed to post status — skipping"
98-
99- # Post the new semantic context (additive — will become required after branch
100- # protection is updated and the legacy context is removed in a follow-up PR).
101- gh api \
102- --method POST \
103- -H "Accept: application/vnd.github+json" \
104- "/repos/${REPO}/statuses/${PR_SHA}" \
105- -f state="$STATE" \
106- -f context="Outdated PR Check / On Commit" \
107- -f description="$DESCRIPTION" \
108- || echo "Failed to post status — skipping"
Original file line number Diff line number Diff line change 8686 fi
8787 fi
8888
89- # Post the legacy context (required by current branch protection).
9089 gh api \
9190 --method POST \
9291 -H "Accept: application/vnd.github+json" \
9695 -f description="$DESCRIPTION" \
9796 || { echo " Failed to post status for PR #${PR_NUMBER} — continuing"; true; }
9897
99- # Post the new semantic context (additive — will become required after branch
100- # protection is updated and the legacy context is removed in a follow-up PR).
101- gh api \
102- --method POST \
103- -H "Accept: application/vnd.github+json" \
104- "/repos/${REPO}/statuses/${PR_SHA}" \
105- -f state="$STATE" \
106- -f context="Outdated PR Check / Scheduled" \
107- -f description="$DESCRIPTION" \
108- || { echo " Failed to post status for PR #${PR_NUMBER} — continuing"; true; }
109-
11098 echo " Posted: $STATE — $DESCRIPTION"
11199 done
You can’t perform that action at this time.
0 commit comments