Skip to content
Snippets Groups Projects
Commit 1b2013d2 authored by Simonas's avatar Simonas
Browse files

fix: conventional commits for PR titles

parent 25530897
No related branches found
No related tags found
No related merge requests found
...@@ -15,11 +15,14 @@ jobs: ...@@ -15,11 +15,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Validate - name: Install commitlint
uses: CondeNast/conventional-pull-request-action@v0.2.0 run: |
env: npm install @commitlint/cli @commitlint/config-conventional
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Fetch merge commit message
with: id: merge_commit
commitlintRulesPath: "./commitlint.config.js" run: |
commitTitleMatch: "false" MERGE_COMMIT_MESSAGE=$(git log --merges -n 1 --pretty=format:"%s")
ignoreCommits: "false" echo "::set-output name=message::$MERGE_COMMIT_MESSAGE"
- name: Validate merge commit message
run: |
echo "${{ steps.merge_commit.outputs.message }}" | npx commitlint
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment