Skip to content

Commit

Permalink
chore: fix variable name in benchmark trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Sep 11, 2023
1 parent 81a460f commit 0d9821c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
}
if (eventName === 'issue_comment') {
const res = await octokit.rest.repos.getCollaboratorPermissionLevel({
const res = await github.rest.repos.getCollaboratorPermissionLevel({
owner,
repo,
username: payload.comment.user.login,
Expand All @@ -52,15 +52,15 @@ jobs:
}
// add emoji to comment if user is an admin to signal benchmark is running
await octokit.rest.reactions.createForIssueComment({
await github.rest.reactions.createForIssueComment({
owner,
repo,
comment_id: payload.comment.node_id,
content: 'rocket',
})
}
const pullRequest = payload.pull_request || await octokit.rest.pulls.get({
const pullRequest = payload.pull_request || await github.rest.pulls.get({
owner,
repo,
pull_number: number,
Expand All @@ -69,7 +69,7 @@ jobs:
const matchesRelease = pullRequest.base.ref.match(/^release\/v(\d+)$/)
const targetSpec = matchesRelease ? matchesRelease[1] : 'latest'
await octokit.rest.repos.createDispatchEvent({
await github.rest.repos.createDispatchEvent({
owner,
repo,
event_type: `"${eventName} ${owner}/${repo}#${number}"`,
Expand Down

0 comments on commit 0d9821c

Please sign in to comment.