From 88459366c8609e3cb04251e311ca7fb81b6817e5 Mon Sep 17 00:00:00 2001 From: Jiovanni Castillo <jcastillo@gitlab.com> Date: Sat, 22 Apr 2023 01:46:16 +0000 Subject: [PATCH] Add related topics section to branches docs --- doc/api/branches.md | 6 ++++++ doc/api/protected_branches.md | 6 ++++++ doc/user/project/protected_branches.md | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/doc/api/branches.md b/doc/api/branches.md index f99c4443ac8ab..9518a8d50327b 100644 --- a/doc/api/branches.md +++ b/doc/api/branches.md @@ -231,3 +231,9 @@ Example request: ```shell curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/merged_branches" ``` + +## Related topics + +- [Branches](../user/project/repository/branches/index.md) +- [Protected branches](../user/project/protected_branches.md) +- [Protected branches API](protected_branches.md) diff --git a/doc/api/protected_branches.md b/doc/api/protected_branches.md index 9bd220f0406b5..d3d91be290fcd 100644 --- a/doc/api/protected_branches.md +++ b/doc/api/protected_branches.md @@ -529,3 +529,9 @@ Example response: "push_access_levels": [] } ``` + +## Related topics + +- [Protected branches](../user/project/protected_branches.md) +- [Branches](../user/project/repository/branches/index.md) +- [Branches API](branches.md) diff --git a/doc/user/project/protected_branches.md b/doc/user/project/protected_branches.md index fa736e79d93cf..60f4d86d2f338 100644 --- a/doc/user/project/protected_branches.md +++ b/doc/user/project/protected_branches.md @@ -326,6 +326,12 @@ Protected branches can only be deleted by using GitLab either from the UI or API This prevents accidentally deleting a branch through local Git commands or third-party Git clients. +## Related topics + +- [Protected branches API](../../api/protected_branches.md) +- [Branches](repository/branches/index.md) +- [Branches API](../../api/branches.md) + <!-- ## Troubleshooting Include any troubleshooting steps that you can foresee. If you know beforehand what issues -- GitLab