]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11726 Add documentation suggestions for new PR overview
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Mon, 25 Feb 2019 10:38:29 +0000 (11:38 +0100)
committerSonarTech <sonartech@sonarsource.com>
Mon, 11 Mar 2019 19:21:03 +0000 (20:21 +0100)
server/sonar-docs/src/EmbedDocsSuggestions.json
server/sonar-web/src/main/js/apps/overview/components/App.tsx

index b161e8cfcf0c8bf8f5ce40df8d853019bc64c54b..4d3822a92926b3b0cd64c24beb5a2cf6430eae4c 100644 (file)
       "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/",
index 58098c3dc9817c395819c47531aecc11b1d53982..ea2dae730bfda59d84e9a6a992f7fd3da9db965d 100644 (file)
@@ -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" />