You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`core` A reference to the [@actions/core](https://github.com/actions/toolkit/tree/main/packages/core) package
@@ -102,14 +102,14 @@ By default, requests made with the `github` instance will not be retried. You ca
102
102
result-encoding: string
103
103
retries: 3
104
104
script: |
105
-
octokit.rest.issues.get({
105
+
github.rest.issues.get({
106
106
issue_number: context.issue.number,
107
107
owner: context.repo.owner,
108
108
repo: context.repo.repo,
109
109
})
110
110
```
111
111
112
-
In this example, request failures from `octokit.rest.issues.get()` will be retried up to 3 times.
112
+
In this example, request failures from `github.rest.issues.get()` will be retried up to 3 times.
113
113
114
114
You can also configure which status codes should be exempt from retries via the `retry-exempt-status-codes` option:
115
115
@@ -121,7 +121,7 @@ You can also configure which status codes should be exempt from retries via the
121
121
retries: 3
122
122
retry-exempt-status-codes: 400,401
123
123
script: |
124
-
octokit.rest.issues.get({
124
+
github.rest.issues.get({
125
125
issue_number: context.issue.number,
126
126
owner: context.repo.owner,
127
127
repo: context.repo.repo,
@@ -162,7 +162,7 @@ jobs:
162
162
- uses: actions/github-script@v7
163
163
with:
164
164
script: |
165
-
octokit.rest.issues.createComment({
165
+
github.rest.issues.createComment({
166
166
issue_number: context.issue.number,
167
167
owner: context.repo.owner,
168
168
repo: context.repo.repo,
@@ -184,7 +184,7 @@ jobs:
184
184
- uses: actions/github-script@v7
185
185
with:
186
186
script: |
187
-
octokit.rest.issues.addLabels({
187
+
github.rest.issues.addLabels({
188
188
issue_number: context.issue.number,
189
189
owner: context.repo.owner,
190
190
repo: context.repo.repo,
@@ -209,12 +209,12 @@ jobs:
209
209
// Get a list of all issues created by the PR opener
0 commit comments