Skip to content

Commit 05a8934

Browse files
author
Tristan payne
committed
chore: add some debugging
1 parent 95461c0 commit 05a8934

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8391,7 +8391,9 @@ function createBranch(github, context, branch) {
83918391
catch (error) {
83928392
if (error.name === 'HttpError' && error.status === 404) {
83938393
// Sometimes branch might come in with refs/heads already
8394+
console.log(`Incoming Branch: ${branch}`);
83948395
branch = branch.replace('refs/heads/', '');
8396+
console.log(`Replaced branch: ${branch}`);
83958397
yield toolkit.git.createRef(Object.assign({ ref: `refs/heads/${branch}`, sha: context.sha }, context.repo));
83968398
}
83978399
else {

src/create-branch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export async function createBranch(github: any, context: Context, branch: string
1515
} catch(error) {
1616
if(error.name === 'HttpError' && error.status === 404) {
1717
// Sometimes branch might come in with refs/heads already
18+
console.log(`Incoming Branch: ${branch}`);
1819
branch = branch.replace('refs/heads/', '');
20+
console.log(`Replaced branch: ${branch}`);
1921
await toolkit.git.createRef({
2022
ref: `refs/heads/${branch}`,
2123
sha: context.sha,

0 commit comments

Comments
 (0)