Removed lots of debugging.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 36s

This commit is contained in:
Philipp Horstenkamp 2023-11-19 13:51:05 +01:00
parent bad0533079
commit 0f232d312e
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -48,22 +48,10 @@ async function getAndPostPullRequests() {
// core.info(`GET repsonse ${JSON.stringify(pulls, 2)}`); // 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
core.info(branch);
core.info(base_branch);
const targetPRFound = _.any( const targetPRFound = _.any(
pulls, pulls,
(pr) => pr.head.ref === branch && pr.base.ref === base_branch, (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) { if (!targetPRFound) {
core.info( core.info(
`No open pulls found, to merge ${branch} into ${base_branch}. Trying to create a new PR.`, `No open pulls found, to merge ${branch} into ${base_branch}. Trying to create a new PR.`,