Skip to content

Commit eb9ec35

Browse files
committed
Fix
1 parent 8dfb56b commit eb9ec35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pre-commit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened, reopened, synchronize, labeled, unlabeled]
66

77
permissions:
8-
checks: write
8+
statuses: write
99

1010
jobs:
1111
lint:
@@ -97,5 +97,5 @@ jobs:
9797
--method POST \
9898
-H "Accept: application/vnd.github+json" \
9999
-H "X-GitHub-Api-Version: 2022-11-28" \
100-
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
100+
/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }} \
101101
-f state=pending -f context=pre-commit-result -f description="Pre-commit checks need to pass before merging"

0 commit comments

Comments
 (0)