feat: add reusable pr-title-check and undraft-release workflows#700
feat: add reusable pr-title-check and undraft-release workflows#700
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughTwo new reusable GitHub Actions workflows are added: one to validate pull request titles against conventional commit standards, and another to publish drafted releases by marking them as non-draft. ChangesGitHub Actions Workflows
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Pull request overview
This PR adds two reusable GitHub Actions workflows intended to be called from other workflows across repositories: one to validate PR titles against Conventional Commit types, and one to publish (undraft) a GitHub Release via the GitHub CLI.
Changes:
- Added a reusable workflow to validate PR titles using
ytanikin/pr-conventional-commits. - Added a reusable workflow to undraft/publish a GitHub Release using
gh release edit.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/undraft-release.yml |
Introduces a callable workflow that undrafts a release by editing the release corresponding to the current ref. |
.github/workflows/pr-title-check.yml |
Introduces a callable workflow that enforces Conventional Commit-style PR titles. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/undraft-release.yml:
- Line 16: The gh release edit invocation in undraft-release.yml directly
interpolates ${{ github.ref_name }} and ${{ github.repository }} into the shell
which risks script injection; change the step to assign github.ref_name and
github.repository into environment variables (e.g., TAG and REPO) via the step's
env: block and then call gh release edit using the environment variables
(quoted) instead of interpolating the expressions, ensuring the command uses the
env vars and includes proper quoting.
🪄 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: 018b665a-e140-457d-9156-ad5488308227
📒 Files selected for processing (2)
.github/workflows/pr-title-check.yml.github/workflows/undraft-release.yml
Description
What problem is being solved?
How is it being solved?
What changes are made to solve it?
References
Review Checklist
mainSummary by CodeRabbit