File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 80
80
github.rest.repos.createCommitStatus({
81
81
owner: context.repo.owner,
82
82
repo: context.repo.repo,
83
- sha: context. sha,
83
+ sha: ${{ github.event.pull_request.head. sha }} ,
84
84
state: 'success',
85
85
context: 'pre-commit-result',
86
86
description: 'All pre-commit checks passed',
@@ -92,12 +92,11 @@ jobs:
92
92
needs.lint.result == 'failure'
93
93
uses : actions/github-script@v7
94
94
with :
95
- debug : true
96
95
script : |
97
96
github.rest.repos.createCommitStatus({
98
97
owner: context.repo.owner,
99
98
repo: context.repo.repo,
100
- sha: context. sha,
99
+ sha: ${{ github.event.pull_request.head. sha }} ,
101
100
state: 'pending',
102
101
context: 'pre-commit-result',
103
102
description: 'Pre-commit checks need to pass before merging',
You can’t perform that action at this time.
0 commit comments