Skip to content

Commit

Permalink
Merge pull request #14 from thirdygayares/thirdygayares-patch-1
Browse files Browse the repository at this point in the history
chore: add pull_request.yml
  • Loading branch information
thirdygayares authored Oct 29, 2024
2 parents e3ddd36 + 571eae4 commit 89d1e03
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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
```
This workflow checks commit messages in the pull request to `dev` for proper formatting.

0 comments on commit 89d1e03

Please sign in to comment.