Skip to content

Commit 6514e44

Browse files
mjudeikis-botmjudeikis
authored andcommitted
fix: replace broken pr-verifier Docker image with inline check
The pr-verifier workflow used gcr.io/kubebuilder/pr-verifier:v0.4.3 which is no longer available on Google Container Registry, causing the 'verify PR contents' CI check to always fail with: manifest unknown: Failed to fetch "v0.4.3" Replace with an equivalent inline shell step that checks the PR title format directly, without requiring an external Docker image. Signed-off-by: mjudeikis-bot <mjudeikis-bot@faros.sh> Co-authored-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
1 parent 6823626 commit 6514e44

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/pr-verifier.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,24 @@ jobs:
1616
pull-requests: read
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Verifier action
20-
id: verifier
21-
uses: kubernetes-sigs/kubebuilder-release-tools@v0.4.3
22-
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Check PR title format
20+
env:
21+
PR_TITLE: ${{ github.event.pull_request.title }}
22+
run: |
23+
# PR titles must start with an emoji or :text: prefix indicating change type.
24+
# Valid prefixes: ✨ 🐛 📖 📝 ⚠️ 🌱 ❓
25+
# or :sparkles: :bug: :book: :memo: :warning: :seedling: :question:
26+
#
27+
# Note: the previous implementation used gcr.io/kubebuilder/pr-verifier:v0.4.3
28+
# which is no longer available on GCR. Replaced with inline shell check.
29+
VALID_PREFIXES="✨|🐛|📖|📝|⚠️|🌱|❓|:sparkles:|:bug:|:book:|:memo:|:warning:|:seedling:|:question:"
30+
if echo "$PR_TITLE" | grep -qP "^($VALID_PREFIXES) .+"; then
31+
echo "✅ PR title format is valid: $PR_TITLE"
32+
else
33+
echo "❌ PR title must start with an emoji or :text: prefix."
34+
echo "Valid prefixes: ✨ 🐛 📖 📝 ⚠️ 🌱 ❓"
35+
echo " or: :sparkles: :bug: :book: :memo: :warning: :seedling: :question:"
36+
echo ""
37+
echo "Current title: $PR_TITLE"
38+
exit 1
39+
fi

0 commit comments

Comments
 (0)