From 223f34f2541e1453ce0db9ee788cbef906c07ebd Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 19 Nov 2023 12:27:45 +0100 Subject: [PATCH] Limited the scope of the get to open prs only. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 449093a..4afccdf 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,8 @@ async function getAndPostPullRequests() { // Perform the GET request core.info("Performing GET request..."); - const getResponse = await fetch(url, { headers }); + const get_url = `${url}?state=open`; + const getResponse = await fetch(get_url, { headers }); if (!getResponse.ok) { throw new Error(`HTTP error! status: ${getResponse.status}`);