Removed lots of debugging.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 36s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 36s
This commit is contained in:
parent
bad0533079
commit
0f232d312e
12
index.js
12
index.js
@ -48,22 +48,10 @@ async function getAndPostPullRequests() {
|
||||
// core.info(`GET repsonse ${JSON.stringify(pulls, 2)}`);
|
||||
|
||||
// Logic to decide if a POST request is needed
|
||||
core.info(branch);
|
||||
core.info(base_branch);
|
||||
const targetPRFound = _.any(
|
||||
pulls,
|
||||
(pr) => pr.head.ref === branch && pr.base.ref === base_branch,
|
||||
);
|
||||
for (let pr of pulls) {
|
||||
core.info(branch);
|
||||
core.info(base_branch);
|
||||
|
||||
core.info(pr.head.ref);
|
||||
core.info(pr.base.ref);
|
||||
core.info(pr.base.ref === base_branch);
|
||||
core.info(pr.head.ref === branch);
|
||||
core.info(pr.head.ref === branch && pr.base.ref === base_branch);
|
||||
}
|
||||
if (!targetPRFound) {
|
||||
core.info(
|
||||
`No open pulls found, to merge ${branch} into ${base_branch}. Trying to create a new PR.`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user