Skip to content

Commit

Permalink
ci: Add github action for PR Conventional Commits (argoproj#2320)
Browse files Browse the repository at this point in the history
* feat(ci): Add github action for PR Conventional Commits

Signed-off-by: zachaller <[email protected]>

* add example scope

Signed-off-by: zachaller <[email protected]>

* add cli as scope

Signed-off-by: zachaller <[email protected]>

* Remove configuration

Signed-off-by: zachaller <[email protected]>

* scopes not required

Signed-off-by: zachaller <[email protected]>

Signed-off-by: zachaller <[email protected]>
  • Loading branch information
zachaller authored and jandersen-plaid committed Nov 26, 2022
1 parent 6742b87 commit 96709b8
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/pr-title-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Lint PR"

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

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure which types are allowed (newline delimited).
# Default: https://github.com/commitizen/conventional-commit-types
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
# Configure which scopes are allowed (newline delimited).
scopes: |
controller
dashboard
trafficrouting
analysis
metricprovider
experiments
deps
example
cli
# Configure that a scope must always be provided.
requireScope: false

0 comments on commit 96709b8

Please sign in to comment.