Skip to content

Create pull_request.yml #1

Create pull_request.yml

Create pull_request.yml #1

Workflow file for this run

name: Enforce Semantic Commits and Tests on PR to Dev
on:
pull_request:
branches:
- dev
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint Commits
run: |
npm install -g @commitlint/config-conventional @commitlint/cli
git log --pretty=format:%s ${{ github.event.before }}..${{ github.sha }} | commitlint
```

Check failure on line 17 in .github/workflows/pull_request.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull_request.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
This workflow checks commit messages in the pull request to `dev` for proper formatting.