mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
Add return statement to example
As someone not familiar with javascript I was banging my head against the wall for an embarrassingly long time trying to figure out why this wasn't working.
This commit is contained in:
parent
60a0d83039
commit
f73544f23e
1 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ By default, requests made with the `github` instance will not be retried. You ca
|
|||
result-encoding: string
|
||||
retries: 3
|
||||
script: |
|
||||
github.rest.issues.get({
|
||||
return github.rest.issues.get({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
|
|
@ -121,7 +121,7 @@ You can also configure which status codes should be exempt from retries via the
|
|||
retries: 3
|
||||
retry-exempt-status-codes: 400,401
|
||||
script: |
|
||||
github.rest.issues.get({
|
||||
return github.rest.issues.get({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
|
|
|
|||
Loading…
Reference in a new issue