diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2019-02-25 11:38:29 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-03-11 20:21:03 +0100 |
commit | 2a0b4e5f0c4d6d250da578107ca076515ec9d101 (patch) | |
tree | 126ed388c03febc9bc26bd06c400e47aa7598d72 /server | |
parent | 0cc9db4a00cc51bdf418e14c1fa85cbd3f77508e (diff) | |
download | sonarqube-2a0b4e5f0c4d6d250da578107ca076515ec9d101.tar.gz sonarqube-2a0b4e5f0c4d6d250da578107ca076515ec9d101.zip |
SONAR-11726 Add documentation suggestions for new PR overview
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-docs/src/EmbedDocsSuggestions.json | 10 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/components/App.tsx | 5 |
2 files changed, 14 insertions, 1 deletions
diff --git a/server/sonar-docs/src/EmbedDocsSuggestions.json b/server/sonar-docs/src/EmbedDocsSuggestions.json index b161e8cfcf0..4d3822a9292 100644 --- a/server/sonar-docs/src/EmbedDocsSuggestions.json +++ b/server/sonar-docs/src/EmbedDocsSuggestions.json @@ -134,6 +134,16 @@ "scope": "sonarcloud" } ], + "pull_requests": [ + { + "link": "/documentation/user-guide/fixing-the-water-leak/", + "text": "Fixing the Water Leak" + }, + { + "link": "/documentation/analysis/pull-request/", + "text": "Analyzing Pull Requests" + } + ], "quality_gates": [ { "link": "/documentation/user-guide/fixing-the-water-leak/", diff --git a/server/sonar-web/src/main/js/apps/overview/components/App.tsx b/server/sonar-web/src/main/js/apps/overview/components/App.tsx index 58098c3dc98..ea2dae730bf 100644 --- a/server/sonar-web/src/main/js/apps/overview/components/App.tsx +++ b/server/sonar-web/src/main/js/apps/overview/components/App.tsx @@ -73,7 +73,10 @@ export class App extends React.PureComponent<Props> { )} {isShortLivingBranch(branchLike) || isPullRequest(branchLike) ? ( - <ReviewApp branchLike={branchLike} component={component} /> + <> + <Suggestions suggestions="pull_requests" /> + <ReviewApp branchLike={branchLike} component={component} /> + </> ) : ( <> <Suggestions suggestions="overview" /> |