Skip to content

Commit

Permalink
Create pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb committed May 19, 2022
1 parent c30f1c8 commit 7940d96
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR Title Check
on:
pull_request_target:
branches:
- main
- 'release/**'
types:
- opened
- reopened
- edited
- synchronize
- ready_for_review
- review_requested


jobs:
lint-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# check for the most recent release: https://github.com/CondeNast/conventional-pull-request-action/releases
# replace vX.X.X below with the most recently released version
- uses: CondeNast/conventional-pull-request-action@v0.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# to override config-conventional rules, specify a relative path to your rules module, actions/checkout is required for this setting!
commitlintRulesPath: ".github/linters/.commitlint.rules.js" # default: undefined
# if the PR contains a single commit, fail if the commit message and the PR title do not match
commitTitleMatch: "false" # default: 'true'

0 comments on commit 7940d96

Please sign in to comment.