fix_: commit-check support forks (#5851)
* fix_: commit-check support forks * fix_: run on pull_request_target * fix_: more event types
This commit is contained in:
parent
d6565375c1
commit
e53a5c968e
|
@ -1,10 +1,13 @@
|
|||
name: "Conventional Commits"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
- labeled
|
||||
- unlabeled
|
||||
jobs:
|
||||
main:
|
||||
name: Validate format
|
||||
|
@ -20,7 +23,7 @@ jobs:
|
|||
- name: Fetch tags
|
||||
run: |
|
||||
git fetch --tags --quiet
|
||||
git checkout origin/${GITHUB_HEAD_REF}
|
||||
git checkout ${{ github.event.pull_request.head.ref }}
|
||||
|
||||
- name: Check commit message
|
||||
id: check_commit_message
|
||||
|
|
Loading…
Reference in New Issue