Limited the scope of the get to open prs only.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 37s

This commit is contained in:
Philipp Horstenkamp 2023-11-19 12:27:45 +01:00
parent d804b763f8
commit 223f34f254
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -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}`);