From 1562a379db19ba881c8d9f27b520f27262ce7c68 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Mon, 12 Mar 2018 10:18:20 -0600 Subject: [PATCH] fix(links): add default for links --- src/repo/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repo/index.js b/src/repo/index.js index 2587fab..1810c7f 100644 --- a/src/repo/index.js +++ b/src/repo/index.js @@ -7,8 +7,8 @@ const SUPPORTED_REPO_TYPES = { name: 'GitHub', checkKey: 'login', defaultHost: 'https://github.com', - linkToCommits: '<%= options.repoHost %>/<%= options.projectOwner %>/<%= options.projectName %>/commits?author=<%= contributor.login %>', - linkToIssues: '<%= options.repoHost %>/<%= options.projectOwner %>/<%= options.projectName %>/issues?q=author%3A<%= contributor.login %>', + linkToCommits: '<%= options.repoHost || "https://github.com" %>/<%= options.projectOwner %>/<%= options.projectName %>/commits?author=<%= contributor.login %>', + linkToIssues: '<%= options.repoHost || "https://github.com" %>/<%= options.projectOwner %>/<%= options.projectName %>/issues?q=author%3A<%= contributor.login %>', getUserInfo: githubAPI.getUserInfo, getContributors: githubAPI.getContributors },