Skip to content

Commit

Permalink
feat: Add PR list features to Overview page (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallet committed Apr 14, 2020
1 parent 39e4ddc commit 2958224
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import {
isCommit,
isBranch,
isComparePage,
isDashBoardOverview,
} from './page-detect'

import addStyleToPage from './add-style'
Expand All @@ -62,7 +63,7 @@ function init(config) {
} else if (isPullRequest()) {
codeReviewFeatures(config)
pullrequestRelatedFeatures(config)
} else if (isPullRequestList()) {
} else if (isPullRequestList() || isDashBoardOverview()) {
pullrequestListRelatedFeatures(config)
} else if (isCreatePullRequestURL()) {
if (config.prTemplateEnabled) {
Expand Down
3 changes: 3 additions & 0 deletions src/page-detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ export const isEditPullRequestURL = () =>
export const isCommit = () => getRepoPath().startsWith('commits/')

export const isBranch = () => getRepoPath().startsWith('branch/')

export const isDashBoardOverview = () =>
getRepoURL().startsWith('dashboard/overview')

0 comments on commit 2958224

Please sign in to comment.