@@ -22,15 +22,15 @@ jobs:
22
22
script : |
23
23
const fs = require('fs')
24
24
const body = await fs.readFileSync('.github/release_template.md', 'utf8')
25
- const result = await github.issues.listComments({
25
+ const result = await github.rest. issues.listComments({
26
26
issue_number: context.issue.number,
27
27
owner: context.repo.owner,
28
28
repo: context.repo.repo
29
29
});
30
30
console.log(result.data)
31
31
const primerComments = result.data.filter(c => c.user.login == 'github-actions[bot]')
32
32
if (!primerComments.length) {
33
- await github.issues.createComment({
33
+ await github.rest. issues.createComment({
34
34
issue_number: context.issue.number,
35
35
owner: context.repo.owner,
36
36
repo: context.repo.repo,
91
91
result-encoding : string
92
92
script : |
93
93
const diff_url = context.payload.pull_request.diff_url
94
- const result = await github.request(diff_url)
94
+ const result = await github.rest. request(diff_url)
95
95
const match = [...result.data.matchAll(/^\+['"]@primer\/css['"]:\s(patch|minor|major)/m)]
96
96
if (match && match[0]) {
97
97
return match[0][1]
@@ -104,7 +104,7 @@ jobs:
104
104
github-token : ${{secrets.GITHUB_TOKEN}}
105
105
script : |
106
106
if (process.env.RELEASE == 'undefined') { return }
107
- const issue = await github.issues.get({
107
+ const issue = await github.rest. issues.get({
108
108
owner: context.repo.owner,
109
109
repo: context.repo.repo,
110
110
issue_number: context.issue.number
0 commit comments