Skip to content

Commit 5e1cb5b

Browse files
authored
feat(ci): add /skip-changelog command for PRs (#81)
1 parent 1d50bc2 commit 5e1cb5b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/generate-changelog.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,16 @@ jobs:
8787
continue
8888
fi
8989
90-
# Check for /release-note in PR comments
90+
# Check PR comments for commands
9191
PR_COMMENTS=$(gh pr view "$PR_NUMBER" --json comments --jq '.comments[].body' 2>/dev/null || echo "")
92+
93+
# Check for /skip-changelog command
94+
if echo "$PR_COMMENTS" | grep -q "^/skip-changelog"; then
95+
echo " Found /skip-changelog, skipping PR"
96+
continue
97+
fi
98+
99+
# Check for /release-note command
92100
RELEASE_NOTE=$(echo "$PR_COMMENTS" | grep "^/release-note " | sed 's|^/release-note ||' | head -1 || echo "")
93101
if [ -n "$RELEASE_NOTE" ]; then
94102
echo " Found /release-note: $RELEASE_NOTE"

0 commit comments

Comments
 (0)