Skip to content

Commit 53281b8

Browse files
committed
Update links.js
1 parent d89ab4a commit 53281b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

links.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ function createLink(linkData) {
2323

2424
const modRepo = modifiedRepos[user + '/' + repoName];
2525

26-
if (modRepo && modRepo.branches
27-
&& modRepo.branches.length === 1) {
26+
// if selected branch is the default branch
27+
if (modRepo &&
28+
(modRepo.defaultBranch === branch)) {
2829

2930
branch = '';
3031

0 commit comments

Comments
 (0)