-
Notifications
You must be signed in to change notification settings - Fork 0
feat: make release label optional #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -17,6 +17,11 @@ if [[ "$PR_HEAD_REF" == release/* ]]; then | |||||
| echo "Detected release PR merge (branch: ${PR_HEAD_REF})" | ||||||
| bash "$SCRIPT_DIR/finalize-release.sh" | ||||||
|
|
||||||
| elif [[ "${INPUT_REQUIRE_RELEASE_LABEL:-false}" != "true" ]]; then | ||||||
| # Phase 1: Label not required — every merged PR triggers a release | ||||||
| echo "Release label not required — creating release PR" | ||||||
| bash "$SCRIPT_DIR/create-release-pr.sh" | ||||||
|
Comment on lines
+20
to
+23
|
||||||
|
|
||||||
| elif echo "$PR_LABELS" | tr ',' '\n' | grep -qx "$INPUT_RELEASE_LABEL"; then | ||||||
|
||||||
| elif echo "$PR_LABELS" | tr ',' '\n' | grep -qx "$INPUT_RELEASE_LABEL"; then | |
| elif echo "$PR_LABELS" | tr ',' '\n' | grep -Fqx "$INPUT_RELEASE_LABEL"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
require-release-labeldefaults tofalse, which changes the action’s default behavior from “only labeled PRs create a release PR” to “every merged PR creates a release PR”. To avoid a breaking change for existing users on@v1, consider defaulting this input totrue(preserve prior behavior) and let users opt out, or publish this under a new major version and call out the breaking change prominently.