Skip to content
Open
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
30 changes: 30 additions & 0 deletions .github/workflows/pr-title-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Pull Request Title Validation

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened

jobs:
validate-title:
name: Validate Pull Request Title
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Validate semantic pull request title
uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
fix
feat
chore
refactor
docs
disallowScopes: |
.+
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Contributing to OpenCATS

## Pull Request Title Format

Pull request titles must follow this format:

`type: description`

Allowed types are `fix`, `feat`, `chore`, `refactor` and `docs`.

Scopes are currently not allowed. For example, `fix: correct login redirect` is valid but `fix(auth): correct login redirect` is not.
Loading