Skip to content

feat: add reusable pr-title-check and undraft-release workflows#700

Merged
rhamzeh merged 2 commits intomainfrom
feat/release-workflow-improvements
May 7, 2026
Merged

feat: add reusable pr-title-check and undraft-release workflows#700
rhamzeh merged 2 commits intomainfrom
feat/release-workflow-improvements

Conversation

@SoulPancake
Copy link
Copy Markdown
Member

@SoulPancake SoulPancake commented May 4, 2026

Description

What problem is being solved?

How is it being solved?

What changes are made to solve it?

References

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

Summary by CodeRabbit

  • Chores
    • Added automated validation for pull request titles to ensure consistent naming conventions.
    • Added automated workflow for managing release drafts.

Copilot AI review requested due to automatic review settings May 4, 2026 17:19
@SoulPancake SoulPancake requested a review from a team as a code owner May 4, 2026 17:19
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 4, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6a317844-af78-4e82-9666-8104c2f94b2b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

Two 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.

Changes

GitHub Actions Workflows

Layer / File(s) Summary
PR Title Validation
.github/workflows/pr-title-check.yml
Reusable workflow with validate-pr-title job that validates PR titles conform to conventional commit format using ytanikin/pr-conventional-commits@v1.5.2, accepting types feat, fix, docs, test, refactor, ci, perf, chore, revert, and release.
Release Management
.github/workflows/undraft-release.yml
Reusable workflow with undraft-release job that publishes drafted releases by running gh release edit to set --draft=false on the current ref.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • rhamzeh
  • ewanharris
🚥 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 title accurately summarizes the main change: adding two reusable GitHub Actions workflows (pr-title-check and undraft-release), which matches the changeset content.
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.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/release-workflow-improvements

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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

Comment thread .github/workflows/undraft-release.yml Outdated
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

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 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

📥 Commits

Reviewing files that changed from the base of the PR and between 1aa2621 and 0fb74d6.

📒 Files selected for processing (2)
  • .github/workflows/pr-title-check.yml
  • .github/workflows/undraft-release.yml

Comment thread .github/workflows/undraft-release.yml Outdated
@SoulPancake SoulPancake requested a review from rhamzeh May 5, 2026 16:05
@rhamzeh rhamzeh added this pull request to the merge queue May 7, 2026
Merged via the queue into main with commit f65b3d7 May 7, 2026
10 of 15 checks passed
@rhamzeh rhamzeh deleted the feat/release-workflow-improvements branch May 7, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants