Created a first draft of this action. #14
1
index.js
1
index.js
@ -41,6 +41,7 @@ async function getAndPostPullRequests() {
|
|||||||
|
|
||||||
const pulls = await getResponse.json();
|
const pulls = await getResponse.json();
|
||||||
core.info(`GET request completed. Number of pulls: ${pulls.length}`);
|
core.info(`GET request completed. Number of pulls: ${pulls.length}`);
|
||||||
|
core.info(`GET repsonse ${JSON.stringify(pulls, 2)}`);
|
||||||
|
|
||||||
// Logic to decide if a POST request is needed
|
// Logic to decide if a POST request is needed
|
||||||
if (pulls.length === 0) {
|
if (pulls.length === 0) {
|
||||||
|
Reference in New Issue
Block a user