Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh committed Apr 28, 2023
1 parent a8afcfb commit 6224931
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/modules/platform/github/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function coerceRestPr(pr: GhRestPr): GhPr {
bodyStruct,
updated_at: pr.updated_at,
node_id: pr.node_id,
targetBranch: pr.base.ref,
targetBranch: pr.base?.ref,
};

if (pr.head?.sha) {
Expand Down
2 changes: 0 additions & 2 deletions lib/workers/repository/update/branch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ export async function processBranch(
);
throw new Error(REPOSITORY_CHANGED);
}
// eslint-disable-next-line
console.log(branchPr.targetBranch, branchConfig.baseBranch);
if (
branchIsModified ||
(branchPr.targetBranch &&
Expand Down

0 comments on commit 6224931

Please sign in to comment.