Skip to content

Commit cdb90bb

Browse files
authored
Hack week 2025: remove unneeded FBV instances (8) - Issues, Enterprise, and custom repo roles (#53935)
1 parent afd9692 commit cdb90bb

File tree

22 files changed

+27
-76
lines changed

22 files changed

+27
-76
lines changed

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ You can also view whether an enterprise owner has a specific role in the organiz
4949
| Enterprise owner | Organization owner | Able to configure organization settings and manage access to the organization's resources through teams, etc. |
5050
| Enterprise owner | Organization member | Able to access organization resources and content, such as repositories, without access to the organization's settings. |
5151

52-
To review all roles in an organization, see [AUTOTITLE](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization). {% ifversion custom-repository-roles %} An organization member can also have a custom role for a specific repository. For more information, see [AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/managing-custom-repository-roles-for-an-organization).{% endif %}
52+
To review all roles in an organization, see [AUTOTITLE](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization). {% ifversion ghec or ghes %} An organization member can also have a custom role for a specific repository. For more information, see [AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/managing-custom-repository-roles-for-an-organization).{% endif %}
5353

5454
For more information about the enterprise owner role, see [AUTOTITLE](/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-owner).
5555

content/admin/administering-your-instance/administering-your-instance-from-the-command-line/command-line-utilities.md

-2
Original file line numberDiff line numberDiff line change
@@ -617,12 +617,10 @@ $ ghe-cluster-maintenance -q
617617
# Queries the current mode
618618
$ ghe-cluster-maintenance -s
619619
# Sets maintenance mode
620-
{%- ifversion custom-maintenance-mode-message %}
621620
$ ghe-cluster-maintenance -s "MESSAGE"
622621
# Sets maintenance mode with a custom message
623622
$ ghe-cluster-maintenance -m "MESSAGE"
624623
# Updates the custom message
625-
{%- endif %}
626624
$ ghe-cluster-maintenance -u
627625
# Unsets maintenance mode
628626
```

content/admin/administering-your-instance/configuring-maintenance-mode/enabling-and-scheduling-maintenance-mode.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ You can perform initial validation of your maintenance operation by configuring
5050
1. In the top navigation bar, click **Maintenance**.
5151

5252
![Screenshot of the header of the {% data variables.enterprise.management_console %}. A tab, labeled "Maintenance", is highlighted with an orange outline.](/assets/images/enterprise/management-console/maintenance-tab.png)
53-
1. Under "Enable and schedule", {% ifversion custom-maintenance-mode-message %}select **Enable maintenance mode**, then {% endif %}decide whether to enable maintenance mode immediately or to schedule a maintenance window for a future time.
53+
1. Under "Enable and schedule", select **Enable maintenance mode**, then decide whether to enable maintenance mode immediately or to schedule a maintenance window for a future time.
5454
* To enable maintenance mode immediately, select the dropdown menu and click **now**.
5555
* To schedule a maintenance window for a future time, select the dropdown menu and click a start time.
5656
{% data reusables.enterprise_management_console.custom-maintenance-message %}
57-
{% ifversion custom-maintenance-mode-message %}1. When you're satisfied with the timing of the window and the optional message, click **Save**. If you selected "now", your instance will be put into maintenance mode immediately.
58-
{% else %}1. When you're satisfied with the timing of the window, select the checkbox next to "Enable maintenance mode". If you selected "now", your instance will be put into maintenance mode immediately.{% endif %}
57+
1. When you're satisfied with the timing of the window and the optional message, click **Save**. If you selected "now", your instance will be put into maintenance mode immediately.
5958

6059
{% ifversion ip-exception-list %}
6160

@@ -103,8 +102,6 @@ For more information, see [AUTOTITLE](/admin/administering-your-instance/adminis
103102

104103
{% endif %}
105104

106-
{% ifversion custom-maintenance-mode-message %}
107-
108105
## Managing maintenance mode using SSH
109106

110107
If you have SSH access, you can use the `ghe-maintenance` command line utility to can set or unset maintenance mode for a {% data variables.product.product_name %} instance with one node, or multiple nodes in a high-availability configuration. For more information, see [AUTOTITLE](/admin/administering-your-instance/administering-your-instance-from-the-command-line/accessing-the-administrative-shell-ssh) and [AUTOTITLE](/admin/administering-your-instance/administering-your-instance-from-the-command-line/command-line-utilities#ghe-maintenance).
@@ -120,14 +117,10 @@ $ ghe-cluster-maintenance -q
120117
# Queries the current mode
121118
$ ghe-cluster-maintenance -s
122119
# Sets maintenance mode
123-
{%- ifversion custom-maintenance-mode-message %}
124120
$ ghe-cluster-maintenance -s "MESSAGE"
125121
# Sets maintenance mode with a custom message
126122
$ ghe-cluster-maintenance -m "MESSAGE"
127123
# Updates the custom message
128-
{%- endif %}
129124
$ ghe-cluster-maintenance -u
130125
# Unsets maintenance mode
131126
```
132-
133-
{% endif %}

content/admin/managing-accounts-and-repositories/communicating-information-to-users-in-your-enterprise/customizing-user-messages-for-your-enterprise.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -107,28 +107,17 @@ Each time a user sees a mandatory message, an audit log event is created. The ev
107107

108108
You can set a global announcement banner to be displayed to all users at the top of every page{% ifversion ghec %} within your enterprise, including every page in every organization owned by the enterprise{% endif %}.
109109

110-
{% ifversion custom-banner-messages %}
111-
You can also create announcement banners at the organization level. For more information, see [AUTOTITLE](/organizations/managing-organization-settings/creating-an-announcement-banner-for-your-organization).{% endif %}
110+
You can also create announcement banners at the organization level. For more information, see [AUTOTITLE](/organizations/managing-organization-settings/creating-an-announcement-banner-for-your-organization).
112111

113112
{% ifversion ghes %}
114113
You can also set an announcement banner{% ifversion ghes %} in the administrative shell using a command line utility or{% endif %} using the API. For more information, see {% ifversion ghes %}[AUTOTITLE](/admin/configuration/configuring-your-enterprise/command-line-utilities#ghe-announce) and {% endif %}[AUTOTITLE](/rest/enterprise-admin#announcements).
115114
{% endif %}
116115

117116
{% data reusables.enterprise-accounts.access-enterprise %}
118117
{% data reusables.enterprise-accounts.settings-tab %}
119-
{% data reusables.enterprise-accounts.messages-tab %}{% ifversion custom-banner-messages %}{% else %}
120-
1. To the right of "Announcement", click **Add announcement**.{% endif %}
121-
1. Under "Announcement", in the text field, type the announcement you want displayed in a banner.
122-
1. Optionally, under "Expires on", select the calendar drop-down menu and click an expiration date.
123-
{% ifversion ghe-announce-dismiss %}
124-
125-
> [!NOTE]
126-
> Announcements must either have an expiration date, be user dismissible, or both.
127-
128-
{% endif %}
118+
{% data reusables.enterprise-accounts.messages-tab %}
129119
{%- ifversion ghe-announce-dismiss %}
130120
1. Optionally, to allow each user to dismiss the announcement, select **User dismissible**.
131-
{%- endif %}{% ifversion custom-banner-messages %}
132-
1. Optionally, to allow each user to dismiss the announcement, select **Allow users to dismiss the announcement**.
133121
{%- endif %}
122+
1. Optionally, to allow each user to dismiss the announcement, select **Allow users to dismiss the announcement**.
134123
{% data reusables.enterprise_site_admin_settings.message-preview-save %}

content/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/custom-patterns/defining-custom-patterns-for-secret-scanning.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ Before defining a custom pattern, you must ensure that {% data variables.product
6060
{% data reusables.repositories.navigate-to-code-security-and-analysis %}
6161
{% data reusables.repositories.navigate-to-ghas-settings %}
6262
{% data reusables.advanced-security.secret-scanning-new-custom-pattern %}
63-
{% data reusables.advanced-security.secret-scanning-add-custom-pattern-details %}{% ifversion custom-pattern-dry-run-ga %}
63+
{% data reusables.advanced-security.secret-scanning-add-custom-pattern-details %}
6464
1. When you're ready to test your new custom pattern, to identify matches in the repository without creating alerts, click **Save and dry run**.
6565
{% data reusables.advanced-security.secret-scanning-dry-run-results %}
66-
{% endif %}
6766
{% data reusables.advanced-security.secret-scanning-create-custom-pattern %}{% ifversion secret-scanning-push-protection-custom-patterns %}
6867
1. Optionally, to enable push protection for your custom pattern, click **Enable**.
6968

@@ -121,11 +120,9 @@ To enable {% data variables.product.prodname_secret_scanning %} on all repositor
121120
{% endif %}
122121
{% data reusables.advanced-security.secret-scanning-new-custom-pattern-org %}
123122
{% data reusables.advanced-security.secret-scanning-add-custom-pattern-details %}
124-
{%- ifversion custom-pattern-dry-run-ga %}
125123
1. When you're ready to test your new custom pattern, to identify matches in select repositories without creating alerts, click **Save and dry run**.
126124
{% data reusables.advanced-security.secret-scanning-dry-run-select-repos %}
127125
{% data reusables.advanced-security.secret-scanning-dry-run-results %}
128-
{%- endif %}
129126
{% data reusables.advanced-security.secret-scanning-create-custom-pattern %}{% ifversion secret-scanning-push-protection-custom-patterns %}
130127
1. Optionally, to enable push protection for your custom pattern, click **Enable**. For more information, see [AUTOTITLE](/code-security/secret-scanning/protecting-pushes-with-secret-scanning#enabling-secret-scanning-as-a-push-protection-in-an-organization-for-a-custom-pattern).
131128

@@ -147,11 +144,9 @@ Before defining a custom pattern, you must ensure that you enable secret scannin
147144
1. Under "{% ifversion code-security-wording-only-enterprise %}Code security{% else %}Code security and analysis{% endif %}", click **Security features**.
148145
1. Under "Secret scanning custom patterns", click **New pattern**.
149146
{% data reusables.advanced-security.secret-scanning-add-custom-pattern-details %}
150-
{%- ifversion custom-pattern-dry-run-ga %}
151147
1. When you're ready to test your new custom pattern, to identify matches in the enterprise without creating alerts, click **Save and dry run**.
152148
{% data reusables.advanced-security.secret-scanning-dry-run-select-enterprise-repos %}
153149
{% data reusables.advanced-security.secret-scanning-dry-run-results %}
154-
{%- endif %}
155150
{% data reusables.advanced-security.secret-scanning-create-custom-pattern %}{% ifversion secret-scanning-push-protection-custom-patterns %}
156151
1. Optionally, to enable push protection for your custom pattern, click **Enable**. For more information, see [AUTOTITLE](/code-security/secret-scanning/protecting-pushes-with-secret-scanning).
157152
{% indented_data_reference reusables.secret-scanning.push-protection-enterprise-note spaces=3 %}{% endif %}

content/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/custom-patterns/managing-custom-patterns.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ When you save a change to a custom pattern, this closes all the {% data variable
2222

2323
{% data reusables.secret-scanning.view-custom-pattern %}
2424
1. Under "{% data variables.product.prodname_secret_scanning_caps %}", to the right of the custom pattern you want to edit, click {% octicon "pencil" aria-label="Edit pattern" %}.
25-
{%- ifversion custom-pattern-dry-run-ga %}
2625
1. When you're ready to test your edited custom pattern, to identify matches without creating alerts, click **Save and dry run**.
27-
{%- endif %}
2826
1. When you have reviewed and tested your changes, click **Publish changes**.{% ifversion secret-scanning-push-protection-custom-patterns %}
2927
{% data reusables.advanced-security.secret-scanning-enable-push-protection-custom-pattern %}
3028
1. Optionally, to disable push protection for your custom pattern, click **Disable**.
@@ -52,17 +50,15 @@ You can enable {% data variables.product.prodname_secret_scanning %} as a push p
5250

5351
{% data reusables.secret-scanning.push-protection-enterprise-note %}
5452

55-
Before enabling push protection for a custom pattern at enterprise level, you must also{% ifversion custom-pattern-dry-run-ga %} test your custom patterns using dry runs. {% data reusables.secret-scanning.dry-runs-enterprise-permissions %}{% else %} test your custom patterns in a repository before defining them for your entire enterprise, as there is no dry-run functionality. That way, you can avoid creating excess false-positive {% data variables.secret-scanning.alerts %}.{% endif %}
53+
Before enabling push protection for a custom pattern at enterprise level, you must also test your custom patterns using dry runs. {% data reusables.secret-scanning.dry-runs-enterprise-permissions %}
5654

5755
{% data reusables.enterprise-accounts.access-enterprise %}
5856
{% data reusables.enterprise-accounts.policies-tab %}
5957
{% data reusables.enterprise-accounts.code-security-and-analysis-policies %}
6058
1. Under "{% ifversion code-security-wording-only-enterprise %}Code security{% else %}Code security and analysis{% endif %}", click **Security features**.
6159
{% data reusables.advanced-security.secret-scanning-edit-custom-pattern %}
6260

63-
{% ifversion custom-pattern-dry-run-ga %}
6461
>[!NOTE] At the enterprise level, you can only edit and enable push protection for custom patterns that you created.
65-
{%- endif %}
6662
6763
1. To enable push protection for your custom pattern, scroll down to "Push Protection", and click **Enable**.
6864

content/discussions/managing-discussions-for-your-community/managing-discussions.md

-3
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ To transfer a discussion, you must have permissions to create discussions in the
180180

181181
{% endif %}
182182

183-
{% ifversion converting-issues-to-discussions %}
184-
185183
## Converting issues based on labels
186184

187185
You can convert all issues with the same label to discussions in bulk. Future issues with this label will also automatically convert to the discussion and category you configure.
@@ -192,4 +190,3 @@ You can convert all issues with the same label to discussions in bulk. Future is
192190
1. Next to the label you want to convert to issues, click **Convert issues**.
193191
1. Select the **Choose a category** drop-down menu, and click a category for your discussion.
194192
1. Click **I understand, convert this issue to a discussion**.
195-
{% endif %}

content/discussions/managing-discussions-for-your-community/moderating-discussions.md

-3
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ It's appropriate to lock a conversation when the entire conversation is not cons
3838
1. To lock the conversation, click **Lock conversation**.
3939
1. When you're ready to unlock the conversation, click **Unlock conversation** in the right margin of a discussion, then click **Unlock conversation**.
4040

41-
{% ifversion converting-issues-to-discussions %}
42-
4341
## Converting an issue to a discussion
4442

4543
When you convert an issue to a discussion, the discussion is automatically created using the content from the issue. People with write access to a repository, or source repository for organization discussions, can bulk convert issues based on labels. For more information, see [AUTOTITLE](/discussions/managing-discussions-for-your-community/managing-discussions).
@@ -50,7 +48,6 @@ When you convert an issue to a discussion, the discussion is automatically creat
5048
1. In the right margin of an issue, click **Convert to discussion**.
5149
1. Select the **Choose a category** drop-down menu, and click a category for your discussion.
5250
1. Click **I understand, convert this issue to a discussion**.
53-
{% endif %}
5451

5552
{% ifversion discussions-hide-comments-on-block %}
5653

content/issues/tracking-your-work-with-issues/about-issues.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,6 @@ You can @mention collaborators who have access to your repository in an issue to
6060

6161
Some conversations are more suitable for {% data variables.product.prodname_discussions %}. {% data reusables.discussions.you-can-use-discussions %} For guidance on when to use an issue or a discussion, see [AUTOTITLE](/get-started/using-github/communicating-on-github).
6262

63-
{% ifversion converting-issues-to-discussions %}When a conversation in an issue is better suited for a discussion, you can convert the issue to a discussion.{% endif %}
63+
When a conversation in an issue is better suited for a discussion, you can convert the issue to a discussion.
64+
6465
{% endif %}

content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ To search for specific events, use the `action` qualifier in your query. Actions
123123
| {% ifversion fpt or ghec %} |
124124
| `repository_vulnerability_alerts` | Contains repository-level configuration activities for {% data variables.product.prodname_dependabot_alerts %}.
125125
| {% endif %} |
126-
| {% ifversion custom-repository-roles %} |
126+
| {% ifversion ghec or ghes %} |
127127
| `role` | Contains all activities related to [custom repository roles](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/managing-custom-repository-roles-for-an-organization).
128128
| {% endif %} |
129129
| {% ifversion ghes or ghec %} |

content/organizations/managing-organization-settings/creating-an-announcement-banner-for-your-organization.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: Creating an announcement banner for your organization
33
shortTitle: Create an announcement banner
44
intro: Organization owners can create announcement banners for the organization.
55
versions:
6-
feature: custom-banner-messages
6+
ghes: '*'
7+
ghec: '*'
78
type: how_to
89
topics:
910
- Maintenance

content/organizations/managing-organization-settings/managing-the-commit-signoff-policy-for-your-organization.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
title: Managing the commit signoff policy for your organization
33
intro: 'You can require users to automatically sign off all commits they make in {% data variables.product.product_name %}''s web interface to repositories owned by your organization.'
44
versions:
5-
feature: commit-signoffs
5+
fpt: '*'
6+
ghec: '*'
7+
ghes: '*'
68
permissions: Organization owners can require all commits to repositories owned by the organization be signed off by the commit author.
79
topics:
810
- Organizations

content/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/about-custom-repository-roles.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: About custom repository roles
33
intro: You can more granularly control access to your organization's repositories with custom repository roles.
44
versions:
5-
feature: custom-repository-roles
5+
ghes: '*'
6+
ghec: '*'
67
topics:
78
- Organizations
89
- Teams
@@ -23,12 +24,8 @@ You can have more granular control over the permissions you grant at the reposit
2324

2425
After you create a custom role, anyone with admin access to a repository can assign the role to an individual or team. For more information, see [AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/managing-an-individuals-access-to-an-organization-repository) and [AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/managing-team-access-to-an-organization-repository).
2526

26-
{% ifversion custom-repo-role-api %}
27-
2827
You can also use the REST API to create and manage custom repository roles. For more information, see [AUTOTITLE](/rest/orgs/custom-roles).
2928

30-
{% endif %}
31-
3229
{% ifversion custom-org-roles %}
3330
Custom repository roles manage access to specific repositories in your organization. To {% ifversion org-custom-role-with-repo-permissions %}grant access to all repositories, and to {% endif %}control access to your organization's administration settings, you can use custom organization roles. See [AUTOTITLE](/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles).
3431

content/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/managing-custom-repository-roles-for-an-organization.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: Managing custom repository roles for an organization
33
intro: 'Learn how to create, edit, or delete custom repository roles for your organization.'
44
permissions: Organization owners.
55
versions:
6-
feature: custom-repository-roles
6+
ghes: '*'
7+
ghec: '*'
78
topics:
89
- Organizations
910
- Teams

content/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/setting-base-permissions-for-an-organization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can set base permissions that apply to all members of an organization when a
2424

2525
If someone with admin access to an organization's repository grants a member a higher level of access for the repository, the higher level of access overrides the base permission.
2626

27-
{% ifversion custom-repository-roles %}
27+
{% ifversion ghec or ghes %}
2828
If you've created a custom repository role with an inherited role that is lower access than your organization's base permissions, any members assigned to that role will default to the organization's base permissions rather than the inherited role. For more information, see [AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/managing-custom-repository-roles-for-an-organization).
2929
{% endif %}
3030

0 commit comments

Comments
 (0)