Skip to content

Commit b94439b

Browse files
committed
Test
1 parent eccb0f5 commit b94439b

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,7 @@ jobs:
9090
if: |
9191
!contains(github.event.pull_request.labels.*.name, 'Status: Pending Merge') ||
9292
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"

0 commit comments

Comments
 (0)