From f73544f23eae3d55f0d8ed2ba39d7135254b22c9 Mon Sep 17 00:00:00 2001 From: jschwartz-cray <52082483+jschwartz-cray@users.noreply.github.com> Date: Thu, 30 May 2024 19:30:45 -0600 Subject: [PATCH] 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09d8341f..1fd42458 100644 --- a/README.md +++ b/README.md @@ -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,