Updates to the pre-commit action created at 2023-11-24 #19

Closed
Philipp wants to merge 10 commits from update/pre-commit-hooks into main
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}`,