Skip to content

Commit

Permalink
Added logs for failing merge and PR creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dabianco committed May 6, 2024
1 parent 10b04d3 commit 23a4573
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13407,7 +13407,7 @@ async function merge(source, target, config) {
commit_message: commitMessage
});
} catch (e) {
// console.log(`merge failed: ${e.message}`);
console.log(`merge failed: ${e.message}`);
result = false;
}

Expand Down Expand Up @@ -13439,7 +13439,7 @@ async function mergeRequest(source, target, config) {
title: prTitle
});
} catch (e) {
// console.log(`merge failed: ${e.message}\n\nPR created instead`);
console.log(`PR creation failed: ${e.message}`);
result = false;
}

Expand Down
4 changes: 2 additions & 2 deletions src/automerge.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function merge(source, target, config) {
commit_message: commitMessage
});
} catch (e) {
// console.log(`merge failed: ${e.message}`);
console.log(`merge failed: ${e.message}`);
result = false;
}

Expand Down Expand Up @@ -107,7 +107,7 @@ async function mergeRequest(source, target, config) {
title: prTitle
});
} catch (e) {
// console.log(`merge failed: ${e.message}\n\nPR created instead`);
console.log(`PR creation failed: ${e.message}`);
result = false;
}

Expand Down

0 comments on commit 23a4573

Please sign in to comment.