@@ -42,14 +42,14 @@ jobs:
42
42
const repo = context.payload.repository.name;
43
43
const comment_id = context.payload.comment.id;
44
44
45
- github.reactions.createForIssueComment({
45
+ github.rest. reactions.createForIssueComment({
46
46
owner,
47
47
repo,
48
48
comment_id,
49
49
content: '+1'
50
50
});
51
51
52
- const { data: pull_request } = await github.pulls.get({
52
+ const { data: pull_request } = await github.rest. pulls.get({
53
53
owner,
54
54
repo,
55
55
pull_number: context.payload.issue.number,
@@ -131,7 +131,7 @@ jobs:
131
131
const comment_id = context.payload.comment.id;
132
132
const requestor = context.payload.comment.user.login;
133
133
134
- github.reactions.createForIssueComment({
134
+ github.rest. reactions.createForIssueComment({
135
135
owner,
136
136
repo,
137
137
comment_id,
@@ -142,7 +142,7 @@ jobs:
142
142
const body = `@${requestor} here is your requested Storybook deployment:\n\n` +
143
143
`:rocket: [${url}](${url})`
144
144
145
- await github.issues.createComment({
145
+ await github.rest. issues.createComment({
146
146
owner,
147
147
repo,
148
148
issue_number: process.env.GITHUB_PR,
@@ -162,14 +162,14 @@ jobs:
162
162
const comment_id = context.payload.comment.id;
163
163
const requestor = context.payload.comment.user.login;
164
164
165
- github.reactions.createForIssueComment({
165
+ github.rest. reactions.createForIssueComment({
166
166
owner,
167
167
repo,
168
168
comment_id,
169
169
content: 'eyes'
170
170
});
171
171
172
- const { data: run } = await github.actions.getWorkflowRun({
172
+ const { data: run } = await github.rest. actions.getWorkflowRun({
173
173
owner,
174
174
repo,
175
175
run_id: process.env.GITHUB_RUN_ID,
@@ -179,7 +179,7 @@ jobs:
179
179
`@${requestor} deploy action failed, please see `+
180
180
`[the workflow run details](${run.html_url}) for more information.`;
181
181
182
- await github.issues.createComment({
182
+ await github.rest. issues.createComment({
183
183
owner,
184
184
repo,
185
185
issue_number: process.env.GITHUB_PR,
0 commit comments