Skip to content
Merged
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
32 changes: 32 additions & 0 deletions .github/workflows/pr-title-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: |
chore
docs
feat
fix
refactor
security
test
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 `chore`, `docs`, `feat`, `fix`, `refactor`, `security` and `test`.

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