aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-docs/src/EmbedDocsSuggestions.json10
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/App.tsx5
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" />