Skip to content

ci: pr conventional commits validator#353

Merged
SoulPancake merged 2 commits into
mainfrom
ci/pr-cc-valdn
Mar 25, 2026
Merged

ci: pr conventional commits validator#353
SoulPancake merged 2 commits into
mainfrom
ci/pr-cc-valdn

Conversation

@SoulPancake

@SoulPancake SoulPancake commented Mar 16, 2026

Copy link
Copy Markdown
Member

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
    • Enhanced development workflow with automated PR title validation to ensure consistent code quality standards.

@SoulPancake
SoulPancake requested a review from a team as a code owner March 16, 2026 08:10
@coderabbitai

coderabbitai Bot commented Mar 16, 2026

Copy link
Copy Markdown

Walkthrough

A new GitHub Actions workflow was added to automatically validate pull request titles against conventional commit standards. The workflow triggers on PR lifecycle events targeting the main branch and uses a third-party action to enforce allowed commit types (feat, fix, docs, test, refactor, ci, perf, chore, revert).

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/pr-title-conventional-commit.yml
Added PR title validation workflow that enforces conventional commit format on PR events (opened, reopened, synchronize, edited). Executes the ytanikin/pr-conventional-commits action (pinned to v1.5.1) with a predefined set of allowed task types and label creation disabled.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'ci: pr conventional commits validator' clearly and concisely describes the main change: adding a CI workflow to validate PR titles using conventional commit standards.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ 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 ci/pr-cc-valdn

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.

@codecov-commenter

codecov-commenter commented Mar 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.80%. Comparing base (972eaff) to head (159044a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #353   +/-   ##
=======================================
  Coverage   85.80%   85.80%           
=======================================
  Files          26       26           
  Lines        1268     1268           
  Branches      249      249           
=======================================
  Hits         1088     1088           
  Misses        110      110           
  Partials       70       70           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI review requested due to automatic review settings March 25, 2026 12:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a dedicated GitHub Actions workflow to enforce Conventional Commit-style PR titles on pull requests targeting main, helping standardize change metadata and keep PR titles consistent across the repo.

Changes:

  • Introduces a new pull_request-triggered workflow that validates PR titles against a configured set of Conventional Commit types.
  • Pins the third-party validation action to a specific commit SHA and disables auto-labeling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

🧹 Nitpick comments (1)
.github/workflows/pr-title-conventional-commit.yml (1)

3-7: Consider validating PRs targeting all branches.

The workflow currently only validates PR titles for pull requests targeting the main branch. If your project uses other long-lived branches (e.g., develop, release branches), you may want to remove the branch filter to validate all PRs regardless of target branch.

📝 Optional: Remove branch restriction
 on:
   pull_request:
     types: [opened, reopened, synchronize, edited]
-    branches:
-      - main
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/pr-title-conventional-commit.yml around lines 3 - 7, The
workflow limits PR title validation to PRs targeting main by specifying the
pull_request.branches filter; remove the branches key (or adjust it to include
other long-lived branches like develop or release/*) so the trigger applies to
all target branches—update the pull_request configuration (the on: pull_request
types and branches block) to either drop the branches array entirely or add the
additional branch patterns you want validated.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/pr-title-conventional-commit.yml:
- Around line 3-7: The workflow limits PR title validation to PRs targeting main
by specifying the pull_request.branches filter; remove the branches key (or
adjust it to include other long-lived branches like develop or release/*) so the
trigger applies to all target branches—update the pull_request configuration
(the on: pull_request types and branches block) to either drop the branches
array entirely or add the additional branch patterns you want validated.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 23b202be-b3f0-4412-88b5-e509b47f7b19

📥 Commits

Reviewing files that changed from the base of the PR and between 972eaff and 159044a.

📒 Files selected for processing (1)
  • .github/workflows/pr-title-conventional-commit.yml

@SoulPancake
SoulPancake added this pull request to the merge queue Mar 25, 2026
Merged via the queue into main with commit 4c8f447 Mar 25, 2026
31 checks passed
@SoulPancake
SoulPancake deleted the ci/pr-cc-valdn branch March 25, 2026 16:00
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.

4 participants