Skip to content

Commit

Permalink
fix: update CI with merge queue (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ya7on authored Dec 19, 2024
1 parent 68c8a3c commit a42455c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
merge_group:
types: [ checks_requested ]

jobs:
commitlint:
Expand All @@ -20,6 +22,10 @@ jobs:
if: github.event_name == 'push'
run: npx commitlint --last --verbose

- name: Validate merge queue
if: github.event_name == 'merge_group'
run: npx commitlint --last --verbose

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
2 changes: 2 additions & 0 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
merge_group:
types: [ checks_requested ]

jobs:
build:
Expand Down

0 comments on commit a42455c

Please sign in to comment.