11
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2026-04-01 15:26:54 +00:00

feat: add ability to run commitlint on events that are not pull requests

For any event that is not of type `pull_request`, we consider there will be a `GITHBU_SHA` defined and run lint against only this specific commit
sha.
This supports not only events of type `pull` but also other events that provide us a `GITHBU_SHA`, like `check_suite`.
This commit is contained in:
Wagner Santos 2019-10-15 10:07:40 -03:00
parent 8bf6195a48
commit 23cd801837
4 changed files with 80 additions and 32 deletions

11
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,11 @@
name: Test
on: [push]
jobs:
commitlint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v1
- uses: ./