From 9dc93a4519d9d5d7be48ff274127136236a3adb3 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 20 Apr 2021 23:50:22 +0000 Subject: Add latest changes from gitlab-org/gitlab@13-11-stable-ee --- .../merge_requests/accessibility_testing.md | 2 +- .../merge_requests/browser_performance_testing.md | 4 +- .../project/merge_requests/cherry_pick_changes.md | 42 ++++++++- doc/user/project/merge_requests/code_quality.md | 46 ++++++++-- .../merge_requests/creating_merge_requests.md | 21 +++++ doc/user/project/merge_requests/csv_export.md | 2 +- doc/user/project/merge_requests/getting_started.md | 10 +-- .../img/cherry_pick_into_project_v13_11.png | Bin 0 -> 18282 bytes .../project/merge_requests/img/code_quality.png | Bin 147457 -> 0 bytes .../img/code_quality_mr_diff_report_v13_11.png | Bin 0 -> 28144 bytes .../img/code_quality_report_13_11.png | Bin 0 -> 23710 bytes .../img/code_quality_widget_13_11.png | Bin 0 -> 29118 bytes .../merge_requests/img/commit_nav_v13_11.png | Bin 0 -> 24164 bytes .../merge_requests/img/commit_nav_v13_4.png | Bin 21170 -> 0 bytes .../img/merge_request_tab_position_v12_6.png | Bin 74731 -> 0 bytes .../img/merge_request_tab_position_v13_11.png | Bin 0 -> 9269 bytes .../img/scoped_to_protected_branch_v13_10.png | Bin 39889 -> 12376 bytes .../img/update_approval_rule_v13_10.png | Bin 42956 -> 13847 bytes doc/user/project/merge_requests/index.md | 97 ++++++++------------- .../merge_requests/load_performance_testing.md | 4 +- .../merge_requests/merge_request_approvals.md | 56 +++++++++--- .../merge_requests/merge_request_dependencies.md | 6 +- .../reviewing_and_managing_merge_requests.md | 39 ++++++++- .../project/merge_requests/squash_and_merge.md | 18 ++-- .../merge_requests/test_coverage_visualization.md | 9 +- .../testing_and_reports_in_merge_requests.md | 2 +- 26 files changed, 246 insertions(+), 112 deletions(-) create mode 100644 doc/user/project/merge_requests/img/cherry_pick_into_project_v13_11.png delete mode 100644 doc/user/project/merge_requests/img/code_quality.png create mode 100644 doc/user/project/merge_requests/img/code_quality_mr_diff_report_v13_11.png create mode 100644 doc/user/project/merge_requests/img/code_quality_report_13_11.png create mode 100644 doc/user/project/merge_requests/img/code_quality_widget_13_11.png create mode 100644 doc/user/project/merge_requests/img/commit_nav_v13_11.png delete mode 100644 doc/user/project/merge_requests/img/commit_nav_v13_4.png delete mode 100644 doc/user/project/merge_requests/img/merge_request_tab_position_v12_6.png create mode 100644 doc/user/project/merge_requests/img/merge_request_tab_position_v13_11.png (limited to 'doc/user/project/merge_requests') diff --git a/doc/user/project/merge_requests/accessibility_testing.md b/doc/user/project/merge_requests/accessibility_testing.md index c518113d3dd..09770bd447d 100644 --- a/doc/user/project/merge_requests/accessibility_testing.md +++ b/doc/user/project/merge_requests/accessibility_testing.md @@ -57,7 +57,7 @@ include: creates an `a11y` job in your CI/CD pipeline, runs Pa11y against the web pages defined in `a11y_urls`, and builds an HTML report for each. -The report for each URL is saved as an artifact that can be [viewed directly in your browser](../../../ci/pipelines/job_artifacts.md#browsing-artifacts). +The report for each URL is saved as an artifact that can be [viewed directly in your browser](../../../ci/pipelines/job_artifacts.md#download-job-artifacts). A single `gl-accessibility.json` artifact is created and saved along with the individual HTML reports. It includes report data for all URLs scanned. diff --git a/doc/user/project/merge_requests/browser_performance_testing.md b/doc/user/project/merge_requests/browser_performance_testing.md index 7a869ed071a..76913351283 100644 --- a/doc/user/project/merge_requests/browser_performance_testing.md +++ b/doc/user/project/merge_requests/browser_performance_testing.md @@ -40,7 +40,7 @@ Consider the following workflow: ## How browser performance testing works First, define a job in your `.gitlab-ci.yml` file that generates the -[Browser Performance report artifact](../../../ci/pipelines/job_artifacts.md#artifactsreportsperformance). +[Browser Performance report artifact](../../../ci/yaml/README.md#artifactsreportsperformance). GitLab then checks this report, compares key performance metrics for each page between the source and target branches, and shows the information in the merge request. @@ -88,7 +88,7 @@ The example uses a CI/CD template that is included in all GitLab installations s or older, you must [add the configuration manually](#gitlab-versions-123-and-older) The template uses the [GitLab plugin for sitespeed.io](https://gitlab.com/gitlab-org/gl-performance), -and it saves the full HTML sitespeed.io report as a [Browser Performance report artifact](../../../ci/pipelines/job_artifacts.md#artifactsreportsperformance) +and it saves the full HTML sitespeed.io report as a [Browser Performance report artifact](../../../ci/yaml/README.md#artifactsreportsperformance) that you can later download and analyze. This implementation always takes the latest Browser Performance artifact available. If [GitLab Pages](../pages/index.md) is enabled, you can view the report directly in your browser. diff --git a/doc/user/project/merge_requests/cherry_pick_changes.md b/doc/user/project/merge_requests/cherry_pick_changes.md index 4c9a6557320..f531cd52af1 100644 --- a/doc/user/project/merge_requests/cherry_pick_changes.md +++ b/doc/user/project/merge_requests/cherry_pick_changes.md @@ -9,7 +9,7 @@ type: reference, concepts GitLab implements Git's powerful feature to [cherry-pick any commit](https://git-scm.com/docs/git-cherry-pick "Git cherry-pick documentation") -with introducing a **Cherry-pick** button in merge requests and commit details. +with a **Cherry-pick** button in merge requests and commit details. ## Cherry-picking a merge request @@ -60,6 +60,46 @@ mainline: git cherry-pick -m 2 7a39eb0 ``` +### Cherry-pick into a project + +> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/21268) in GitLab 13.11. +> - It's [deployed behind a feature flag](../../feature_flags.md), disabled by default. +> - It's disabled on GitLab.com. +> - It's not recommended for production use. +> - To use it in GitLab self-managed instances, ask a GitLab administrator to [enable it](#enable-or-disable-cherry-picking-into-a-project). **(FREE SELF)** + +WARNING: +This feature might not be available to you. Check the **version history** note above for details. + +You can use the GitLab UI to cherry-pick merge requests into a project, even if the +merge request is from a fork: + +1. In the merge request's secondary menu, click **Commits** to display the commit details page. +1. Click on the **Options** dropdown and select **Cherry-pick** to show the cherry-pick modal. +1. In **Pick into project** and **Pick into branch**, select the destination project and branch: + ![Cherry-pick commit](img/cherry_pick_into_project_v13_11.png) +1. (Optional) Select **Start a new merge request** if you're ready to create a merge request. +1. Click **Cherry-pick**. + +### Enable or disable cherry-picking into a project **(FREE SELF)** + +Cherry-picking into a project is under development and not ready for production use. It is +deployed behind a feature flag that is **disabled by default**. +[GitLab administrators with access to the GitLab Rails console](../../../administration/feature_flags.md) +can enable it. + +To enable it: + +```ruby +Feature.enable(:pick_into_project) +``` + +To disable it: + +```ruby +Feature.disable(:pick_into_project) +``` +