Skip to content

Commit 698549b

Browse files
authored
chore: revert semantic Outdated PR Check contexts (#32862)
Reverts the / On Commit and / Scheduled context posts added in #32331. Both workflows now post only the single Outdated PR Check commit status, which is the existing required branch protection check.
1 parent 0026d94 commit 698549b

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

.github/workflows/outdated-pr-check.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ jobs:
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" \
@@ -95,14 +94,3 @@ jobs:
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"

.github/workflows/outdated-pr-refresh.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ jobs:
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" \
@@ -96,16 +95,5 @@ jobs:
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

0 commit comments

Comments
 (0)