Limited the scope of the get to open prs only.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 37s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 37s
This commit is contained in:
parent
d804b763f8
commit
223f34f254
3
index.js
3
index.js
@ -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}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user