Skip to content

fix(ci): use feat: prefix in release PR title for semantic-release#385

Merged
skevetter merged 1 commit into
mainfrom
fix-release-pr-title
May 19, 2026
Merged

fix(ci): use feat: prefix in release PR title for semantic-release#385
skevetter merged 1 commit into
mainfrom
fix-release-pr-title

Conversation

@skevetter

@skevetter skevetter commented May 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Changes release PR title from release: to feat(release): so squash merges trigger semantic-release
  • Adds note in PR body to prefer rebase merge (preserves individual feat:/fix: commits)
  • Also enabled rebase merge on the repo settings

Summary by CodeRabbit

  • Chores
    • Updated release process workflows to refine pull request metadata and merge strategy.

Review Change Stack

Squash merges use the PR title as the commit message. semantic-release
needs a feat:/fix: prefix to trigger a version bump. Also added note
to use rebase merge to preserve individual commits.
@coderabbitai

coderabbitai Bot commented May 19, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Updated the release PR creation workflow to use semantic-commit title format (feat(release): ...) and appended a "Merge with rebase" instruction to the PR body to preserve individual commit messages for semantic-release processing.

Changes

Release PR metadata update

Layer / File(s) Summary
Release PR metadata update
.github/workflows/create-release-pr.yml
The gh pr create command's --title now uses feat(release): promote main to stable format and the --body includes a trailing callout instructing reviewers to merge with rebase, with adjusted multiline formatting.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested labels

size/xs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main change: updating the release PR title to use the 'feat:' prefix instead of 'release:' for semantic-release compatibility.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/create-release-pr.yml:
- Around line 44-48: Replace interpolating ${{ steps.commits.outputs.log }}
directly into the double-quoted --body argument (which allows shell/template
injection) by writing the output safely to a file and passing that file to the
GitHub CLI via --body-file; specifically, capture steps.commits.outputs.log into
a temp file using a safe write (e.g. printf '%s' "${{ steps.commits.outputs.log
}}" > pr_body.txt) and then call gh pr create ... --body-file pr_body.txt
(instead of --body "...${{ steps.commits.outputs.log }}...") so special
characters in the commit log are not interpreted by the shell or CLI.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 67bfc8ab-5afc-4173-a9df-84b9ecfe32ef

📥 Commits

Reviewing files that changed from the base of the PR and between 3d9b0a0 and a61658f.

📒 Files selected for processing (1)
  • .github/workflows/create-release-pr.yml

Comment on lines 44 to +48
--body "## Commits being promoted

${{ steps.commits.outputs.log }}"
${{ steps.commits.outputs.log }}

> **Merge with rebase** to preserve individual commit messages for semantic-release."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Avoid shell/template injection when building PR body (Line 46).

steps.commits.outputs.log is injected into a double-quoted shell argument. If a commit message contains shell metacharacters (for example $(...) or quotes), it can be executed/interpreted in this step.

🔒 Safer pattern using --body-file
       - name: Create PR
         env:
           GH_TOKEN: ${{ steps.app-token.outputs.token }}
+          COMMITS_LOG: ${{ steps.commits.outputs.log }}
         run: |
+          {
+            printf '## Commits being promoted\n\n'
+            printf '%s\n\n' "$COMMITS_LOG"
+            printf '> **Merge with rebase** to preserve individual commit messages for semantic-release.\n'
+          } > pr_body.md
+
           gh pr create \
             --base release \
             --head main \
             --title "feat(release): promote main to stable" \
-            --body "## Commits being promoted
-
-          ${{ steps.commits.outputs.log }}
-
-          > **Merge with rebase** to preserve individual commit messages for semantic-release."
+            --body-file pr_body.md
🧰 Tools
🪛 zizmor (1.25.2)

[info] 46-46: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/create-release-pr.yml around lines 44 - 48, Replace
interpolating ${{ steps.commits.outputs.log }} directly into the double-quoted
--body argument (which allows shell/template injection) by writing the output
safely to a file and passing that file to the GitHub CLI via --body-file;
specifically, capture steps.commits.outputs.log into a temp file using a safe
write (e.g. printf '%s' "${{ steps.commits.outputs.log }}" > pr_body.txt) and
then call gh pr create ... --body-file pr_body.txt (instead of --body "...${{
steps.commits.outputs.log }}...") so special characters in the commit log are
not interpreted by the shell or CLI.

@netlify

netlify Bot commented May 19, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit a61658f
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a0c9f56560da70008c8d6cf

@skevetter skevetter merged commit bf184ca into main May 19, 2026
16 checks passed
@skevetter skevetter deleted the fix-release-pr-title branch May 19, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant