Skip to content

Commit 0d9821c

Browse files
committed
chore: fix variable name in benchmark trigger
1 parent 81a460f commit 0d9821c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/benchmark.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
}
4242
4343
if (eventName === 'issue_comment') {
44-
const res = await octokit.rest.repos.getCollaboratorPermissionLevel({
44+
const res = await github.rest.repos.getCollaboratorPermissionLevel({
4545
owner,
4646
repo,
4747
username: payload.comment.user.login,
@@ -52,15 +52,15 @@ jobs:
5252
}
5353
5454
// add emoji to comment if user is an admin to signal benchmark is running
55-
await octokit.rest.reactions.createForIssueComment({
55+
await github.rest.reactions.createForIssueComment({
5656
owner,
5757
repo,
5858
comment_id: payload.comment.node_id,
5959
content: 'rocket',
6060
})
6161
}
6262
63-
const pullRequest = payload.pull_request || await octokit.rest.pulls.get({
63+
const pullRequest = payload.pull_request || await github.rest.pulls.get({
6464
owner,
6565
repo,
6666
pull_number: number,
@@ -69,7 +69,7 @@ jobs:
6969
const matchesRelease = pullRequest.base.ref.match(/^release\/v(\d+)$/)
7070
const targetSpec = matchesRelease ? matchesRelease[1] : 'latest'
7171
72-
await octokit.rest.repos.createDispatchEvent({
72+
await github.rest.repos.createDispatchEvent({
7373
owner,
7474
repo,
7575
event_type: `"${eventName} ${owner}/${repo}#${number}"`,

0 commit comments

Comments
 (0)