Skip to content

Commit 68a6521

Browse files
committed
test(ci): use edited event to get a pull_request.title
1 parent c66fa94 commit 68a6521

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Test
22
on:
33
pull_request:
4+
types: [edited, opened]
45
env:
56
GO_VERSION: "1.17"
67
jobs:
@@ -10,7 +11,6 @@ jobs:
1011
steps:
1112
- uses: actions/checkout@v2
1213
- name: Go pull request message linter
13-
uses: masahiro331/go-commitlinter@0.1.0
14+
uses: masahiro331/go-commitlinter@0.1.1
1415
env:
15-
PR: ${{ github.event.number }}
16-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
TITLE: ${{ github.event.pull_request.title }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ runs:
88
tar xvfz go-commitlinter.tar.gz
99
mv go-commitlinter /usr/local/bin/
1010
shell: bash
11-
- run: gh pr view $PR | head -n 1 | cut -f 2 | go-commitlinter
11+
- run: echo $TITLE | go-commitlinter
1212
shell: bash

0 commit comments

Comments
 (0)