Skip to content

Update branch protection instructions for different GitHub versions - #45657

Merged
subatoi merged 1 commit into
github:mainfrom
ashis-baral:branches
Sep 1, 2026
Merged

Update branch protection instructions for different GitHub versions#45657
subatoi merged 1 commit into
github:mainfrom
ashis-baral:branches

Conversation

@ashis-baral

@ashis-baral ashis-baral commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Why:

Closes: #45656

What's being changed (if available, include any code snippets, screenshots, or gifs):

Updates the Creating a branch protection rule instructions to use version-specific text for the repository settings sidebar.

"Code, planning, and automation" for GitHub Free, Pro, Team (FPT), and GitHub Enterprise Cloud (GHEC).

"Code and automation" for GitHub Enterprise Server (GHES).

branch protection

This change ensures that the documentation matches the UI for each GitHub version and helps users locate the Branches settings when following the instructions.

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

@github-actions github-actions Bot added the triage Do not begin working on this issue until triaged by the team label Aug 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule.md fpt
ghec
ghes@ 3.22 3.21 3.20 3.19 3.18 3.17
fpt
ghec
ghes@ 3.22 3.21 3.20 3.19 3.18 3.17
from reusable
repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/converting-branch-protections-to-rulesets.md fpt
ghec
fpt
ghec
from reusable

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

@ashis-baral ashis-baral changed the title Update repository-branches.md Update branch protection instructions for different GitHub versions Aug 29, 2026

@subatoi subatoi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for spotting this and raising an issue and a fix, @ashis-baral, and for the correction for all versions. I'll get this merged now 👍

@subatoi
subatoi added this pull request to the merge queue Sep 1, 2026
Merged via the queue into github:main with commit c928ffe Sep 1, 2026
48 checks passed
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues

@ashis-baral

Copy link
Copy Markdown
Contributor Author

@subatoi Thank you so much for the review and for getting this merged! 🙌 I really appreciate it. Glad I could help get this corrected across all versions! 😊

@ashis-baral
ashis-baral deleted the branches branch September 1, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect sidebar section name in branch protection rule documentation

2 participants