Created a first draft of this action. #14

Merged
Philipp merged 68 commits from draft into main 2023-11-19 23:21:49 +01:00
644 changed files with 143232 additions and 0 deletions
Showing only changes of commit 223f34f254 - Show all commits

View File

@ -32,7 +32,8 @@ async function getAndPostPullRequests() {
// Perform the GET request // Perform the GET request
core.info("Performing 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) { if (!getResponse.ok) {
throw new Error(`HTTP error! status: ${getResponse.status}`); throw new Error(`HTTP error! status: ${getResponse.status}`);