fixed-an-action #20

Merged
Philipp merged 9 commits from fixed-an-action into main 2023-11-24 19:40:48 +01:00
4 changed files with 16 additions and 13 deletions
Showing only changes of commit 220e001fd3 - Show all commits

View File

@ -51,7 +51,10 @@ async function getAndPostPullRequests() {
headers, headers,
body: JSON.stringify(postData), body: JSON.stringify(postData),
}); });
if (postResponse.status === 409) {
core.warning("PR between the branches already exists.");
return;
}
if (!postResponse.ok) { if (!postResponse.ok) {
throw new Error( throw new Error(
`HTTP error! status on creating a new PR: ${postResponse.status}`, `HTTP error! status on creating a new PR: ${postResponse.status}`,