Created a first draft of this action. #14
4
index.js
4
index.js
@ -54,10 +54,6 @@ async function getAndPostPullRequests() {
|
|||||||
body: JSON.stringify(postData),
|
body: JSON.stringify(postData),
|
||||||
});
|
});
|
||||||
|
|
||||||
const postResponseText = await postResponse.text();
|
|
||||||
core.info(`POST request status: ${postResponse.status}`);
|
|
||||||
core.info(`POST response body: ${postResponseText}`);
|
|
||||||
|
|
||||||
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}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user