Skip to content

Commit

Permalink
chore: enforce conventional commits on Weave PR titles (#74)
Browse files Browse the repository at this point in the history
* chore: enforce conventional commits on Weave PR titles

* use default auth

* pull_request_target

---------

Co-authored-by: David Jackson <[email protected]>
  • Loading branch information
davidwallacejackson and David Jackson authored Jul 18, 2023
1 parent 1501b6e commit 1c2afa8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Validate PR

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

jobs:
cc:
name: Validate PR title
runs-on: ubuntu-latest
steps:
# https://github.com/amannn/action-semantic-pull-request/releases
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PR_TITLE_GITHUB_TOKEN }}
with:
# Allowed types: https://www.notion.so/wandbai/Pull-Requests-17966b997841407b95b7c36414ae0634
types: |
feat
fix
docs
style
refactor
perf
test
analytics
build
ci
chore
revert
security
release
wip: true
validateSingleCommit: false
validateSingleCommitMatchesPrTitle: false

0 comments on commit 1c2afa8

Please sign in to comment.