chore: create workflow for common commits#128
chore: create workflow for common commits#128jland-redhat merged 1 commit intoopendatahub-io:mainfrom
Conversation
WalkthroughAdds a new GitHub Actions workflow to validate pull request titles (and optionally bodies) against semantic commit conventions on pull_request events. It configures allowed types, subject/body patterns, label-based ignores for draft/wip, and runs a single validation job on ubuntu-latest. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant GH as GitHub (PR Event)
participant WF as Workflow: PR Title Validation
participant Job as Job: validate-pr-title
participant Act as Action: semantic-pull-request
Dev->>GH: Open/Edit/Synchronize PR
GH-->>WF: Trigger workflow
WF->>Job: Start on ubuntu-latest (timeout 5m)
Job->>Job: actions/checkout
Job->>Act: Validate title/body with config
alt PR labeled draft/wip
Act-->>Job: Skip validation (ignored by labels)
else Not draft/wip
Act-->>Job: Pass/Fail based on rules
end
Job-->>WF: Result
WF-->>GH: Status on PR
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/pr-title-validation.yml (1)
18-20: Drop the checkout step to streamline the job.This action reads PR metadata via the API and never touches the workspace, so
actions/checkoutjust burns time. Removing it will shave seconds off every run.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jland-redhat, nerdalert The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Co-authored-by: Jamie Land <hokie10@gmail.com>
Creating PR to insure we are using Common Commits Format
Summary by CodeRabbit