Skip to content

Commit

Permalink
chore: add workflow to make sure we use "conventional" commit messages (
Browse files Browse the repository at this point in the history
  • Loading branch information
travis authored Mar 29, 2023
1 parent 444fd2d commit a4932d3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Require Conventional Commits'

on:
# `pull_request_target` event runs in the context of the base of the pull request, rather than in the context of the merge commit, as the pull_request event does.
# This prevents execution of unsafe code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow.
# This event allows your workflow to do things like label or comment on pull requests from forks.
# Avoid using this event if you need to build or run code from the pull request.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a4932d3

Please sign in to comment.