Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
reviews:
request_changes_workflow: true
path_instructions:
- path: "**"
instructions: |
Check whether the PR title prefix allowed in the pr-title.yml workflow
accurately describes the changes. Flag e.g. if a PR labeled "fix" appears to add
new functionality, if a "feat" PR only refactors existing code, or if a
"chore" PR contains logic changes that should be a "feat" or "fix".
If a PR mixes unrelated concerns (e.g., a bug fix bundled with a refactor
or new feature), suggest splitting it into separate focused PRs.
30 changes: 30 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR Title Check

on:
pull_request_target:
types: [opened, edited, synchronize]

permissions:
pull-requests: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
check-title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
build
chore
ci
docs
feat
fix
refactor
test
Loading