We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c66fa94 commit 68a6521Copy full SHA for 68a6521
2 files changed
.github/workflows/test.yaml
@@ -1,6 +1,7 @@
1
name: Test
2
on:
3
pull_request:
4
+ types: [edited, opened]
5
env:
6
GO_VERSION: "1.17"
7
jobs:
@@ -10,7 +11,6 @@ jobs:
10
11
steps:
12
- uses: actions/checkout@v2
13
- name: Go pull request message linter
- uses: masahiro331/go-commitlinter@0.1.0
14
+ uses: masahiro331/go-commitlinter@0.1.1
15
- PR: ${{ github.event.number }}
16
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ TITLE: ${{ github.event.pull_request.title }}
action.yml
@@ -8,5 +8,5 @@ runs:
8
tar xvfz go-commitlinter.tar.gz
9
mv go-commitlinter /usr/local/bin/
shell: bash
- - run: gh pr view $PR | head -n 1 | cut -f 2 | go-commitlinter
+ - run: echo $TITLE | go-commitlinter
0 commit comments