Skip to content

Commit 1ceae1a

Browse files
authored
fix: add commit.prurl check (#72)
1 parent 85790dc commit 1ceae1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

branch-diff.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function findMergeBase (repoPath, branch1, branch2) {
5454
}
5555

5656
function normalizeIfTrailingSlash (commit) {
57-
if (commit.prUrl.at(-1) === '/') {
57+
if (commit.prUrl && commit.prUrl.at(-1) === '/') {
5858
commit.prUrl = commit.prUrl.slice(0, -1)
5959
}
6060
}

0 commit comments

Comments
 (0)