File tree 1 file changed +4
-11
lines changed 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 90
90
if : |
91
91
!contains(github.event.pull_request.labels.*.name, 'Status: Pending Merge') ||
92
92
needs.lint.result == 'failure'
93
- uses : actions/github-script@v7
94
- with :
95
- script : |
96
- github.rest.repos.createCommitStatus({
97
- owner: context.repo.owner,
98
- repo: context.repo.repo,
99
- sha: ${{ github.event.pull_request.head.sha }},
100
- state: 'pending',
101
- context: 'pre-commit-result',
102
- description: 'Pre-commit checks need to pass before merging',
103
- });
93
+ run :
94
+ gh api --method POST -H "Accept : application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
95
+ /repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }} \
96
+ -f state=pending -f context=pre-commit-result -f description="Pre-commit checks need to pass before merging"
You can’t perform that action at this time.
0 commit comments