Skip to content

Commit f272eec

Browse files
sarahsmattpollard
andauthored
Remove deprecated GHES versions from content and data (#15830)
* ran script/remove-unused-assets.js (manually removed unused variables printed by the script) * package-lock * turn elsif into two ifs to prepare for running Liquid deprecation script * ran script/remove-deprecated-enterprise-version-markup.js --release 2.14 (ONLY UPDATES LINE BREAKS ETC.) * ran script/remove-deprecated-enterprise-version-markup.js --release 2.15 * ran script/remove-deprecated-enterprise-version-markup.js --release 2.17 * ran script/remove-deprecated-enterprise-version-markup.js --release 2.18 * update hardcoded test * Update content/github/collaborating-with-issues-and-pull-requests/filtering-files-in-a-pull-request.md Co-authored-by: Matt Pollard <[email protected]> * add currentVersion is NOT free-pro-team to conditional, to make sure the deprecation script does the right thing when it is time to deprecate 2.21 Co-authored-by: Matt Pollard <[email protected]>
1 parent dc5b6f2 commit f272eec

File tree

355 files changed

+346
-566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

355 files changed

+346
-566
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

content/actions/creating-actions/metadata-syntax-for-github-actions.md

-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ Action metadata files use YAML syntax. If you're new to YAML, you can read "[Lea
4242

4343
This example configures two inputs: numOctocats and octocatEyeColor. The numOctocats input is not required and will default to a value of '1'. The octocatEyeColor input is required and has no default value. Workflow files that use this action must use the `with` keyword to set an input value for octocatEyeColor. For more information about the `with` syntax, see "[Workflow syntax for {% data variables.product.prodname_actions %}](/articles/workflow-syntax-for-github-actions/#jobsjob_idstepswith)."
4444

45-
4645
```yaml
4746
inputs:
4847
numOctocats:
@@ -54,7 +53,6 @@ inputs:
5453
required: true
5554
```
5655
57-
5856
When you specify an input to an action in a workflow file or use a default input value, {% data variables.product.prodname_dotcom %} creates an environment variable for the input with the name `INPUT_<VARIABLE_NAME>`. The environment variable created converts input names to uppercase letters and replaces spaces with `_` characters.
5957

6058
For example, if a workflow defined the numOctocats and octocatEyeColor inputs, the action code could read the values of the inputs using the `INPUT_NUMOCTOCATS` and `INPUT_OCTOCATEYECOLOR` environment variables.

content/actions/reference/events-that-trigger-workflows.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ Runs your workflow anytime the `release` event occurs. {% data reusables.develop
602602

603603
| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
604604
| --------------------- | -------------- | ------------ | -------------|
605-
| [`release`](/webhooks/event-payloads/#release) | - `published`{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %} <br/>- `unpublished` <br/>- `created` <br/>- `edited` <br/>- `deleted` <br/>- `prereleased`<br/> - `released`{% endif %} | Last commit in the tagged release | Tag of release |
605+
| [`release`](/webhooks/event-payloads/#release) | - `published` <br/>- `unpublished` <br/>- `created` <br/>- `edited` <br/>- `deleted` <br/>- `prereleased`<br/> - `released` | Last commit in the tagged release | Tag of release |
606606

607607
{% data reusables.developer-site.limit_workflow_to_activity_types %}
608608

content/actions/reference/workflow-commands-for-github-actions.md

-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ steps:
274274
echo 'EOF' >> $GITHUB_ENV
275275
```
276276

277-
278277
### Adding a system path
279278

280279
`echo "{path}" >> $GITHUB_PATH`

content/actions/reference/workflow-syntax-for-github-actions.md

-2
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,6 @@ The `args` are used in place of the `CMD` instruction in a `Dockerfile`. If you
704704
1. Use defaults that allow using the action without specifying any `args`.
705705
1. If the action exposes a `--help` flag, or something similar, use that as the default to make your action self-documenting.
706706

707-
708707
#### **`jobs.<job_id>.steps.with.entrypoint`**
709708

710709
Overrides the Docker `ENTRYPOINT` in the `Dockerfile`, or sets it if one wasn't already specified. Unlike the Docker `ENTRYPOINT` instruction which has a shell and exec form, `entrypoint` keyword accepts only a single string defining the executable to be run.
@@ -839,7 +838,6 @@ strategy:
839838

840839
You can use `include` to add new jobs to a build matrix. Any unmatched include configurations are added to the matrix. For example, if you want to use `node` version 12 to build on multiple operating systems, but wanted one extra experimental job using node version 13 on Ubuntu, you can use `include` to specify that additional job.
841840

842-
843841
{% raw %}
844842
```yaml
845843
runs-on: ${{ matrix.os }}

content/admin/configuration/command-line-utilities.md

-2
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,13 @@ This utility allows you to control the state of the installation's maintenance m
180180
ghe-maintenance -h
181181
```
182182

183-
{% if currentVersion ver_gt "[email protected]" %}
184183
#### ghe-motd
185184

186185
This utility re-displays the message of the day (MOTD) that administrators see when accessing the instance via the administrative shell. The output contains an overview of the instance's state.
187186

188187
```shell
189188
ghe-motd
190189
```
191-
{% endif %}
192190

193191
#### ghe-nwo
194192

content/admin/configuration/connecting-github-enterprise-server-to-github-enterprise-cloud.md

-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ Enabling {% data variables.product.prodname_github_connect %} also creates a {%
3737

3838
Enabling {% data variables.product.prodname_github_connect %} will not allow {% data variables.product.prodname_dotcom_the_website %} users to make changes to {% data variables.product.prodname_ghe_server %}.
3939

40-
{% if currentVersion ver_gt "[email protected]" %}
4140
For more information about managing enterprise accounts using the GraphQL API, see "[Enterprise accounts](/v4/guides/managing-enterprise-accounts)."
42-
{% endif %}
4341
### Enabling {% data variables.product.prodname_github_connect %}
4442

4543
1. Sign in to {% data variables.product.product_location_enterprise %} and {% data variables.product.prodname_dotcom_the_website %}.

content/admin/enterprise-management/about-geo-replication.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Geo DNS, such as [Amazon's Route 53 service](http://docs.aws.amazon.com/Route53/
1818

1919
### Limitations
2020

21-
Writing requests to the replica requires sending the data to the primary and all replicas. This means that the performance of all writes are limited by the slowest replica{% if currentVersion ver_gt "[email protected]" %}, although new geo-replicas can seed the majority of their data from existing co-located geo-replicas, rather than from the primary{% endif %}. Geo-replication will not add capacity to a {% data variables.product.prodname_ghe_server %} instance or solve performance issues related to insufficient CPU or memory resources. If the primary appliance is offline, active replicas will be unable to serve any read or write requests.
21+
Writing requests to the replica requires sending the data to the primary and all replicas. This means that the performance of all writes are limited by the slowest replica, although new geo-replicas can seed the majority of their data from existing co-located geo-replicas, rather than from the primary. Geo-replication will not add capacity to a {% data variables.product.prodname_ghe_server %} instance or solve performance issues related to insufficient CPU or memory resources. If the primary appliance is offline, active replicas will be unable to serve any read or write requests.
2222

2323
### Monitoring a geo-replication configuration
2424

content/admin/enterprise-management/about-high-availability-configuration.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ To manage replication on {% data variables.product.prodname_ghe_server %}, use t
5252

5353
The `ghe-repl-setup` command puts a {% data variables.product.prodname_ghe_server %} appliance in replica standby mode.
5454

55-
- An encrypted {% if currentVersion ver_gt "[email protected]" %}WireGuard VPN{% else %}OpenVPN{% endif %} tunnel is configured for communication between the two appliances.
55+
- An encrypted WireGuard VPN tunnel is configured for communication between the two appliances.
5656
- Database services are configured for replication and started.
5757
- Application services are disabled. Attempts to access the replica appliance over HTTP, Git, or other supported protocols will result in an "appliance in replica mode" maintenance page or error message.
5858

@@ -71,8 +71,7 @@ Run `ghe-repl-start' to start replicating against the newly configured primary.
7171
The `ghe-repl-start` command turns on active replication of all datastores.
7272

7373
```shell
74-
admin@169-254-1-2:~$ ghe-repl-start{% if currentVersion ver_lt "[email protected]" %}
75-
Starting OpenVPN tunnel ... {% endif %}
74+
admin@169-254-1-2:~$ ghe-repl-start
7675
Starting MySQL replication ...
7776
Starting Redis replication ...
7877
Starting Elasticsearch replication ...
@@ -144,8 +143,7 @@ Stopping Pages replication ...
144143
Stopping Git replication ...
145144
Stopping MySQL replication ...
146145
Stopping Redis replication ...
147-
Stopping Elasticsearch replication ...{% if currentVersion ver_lt "[email protected]" %}
148-
Stopping OpenVPN tunnel ...{% endif %}
146+
Stopping Elasticsearch replication ...
149147
Success: replication was stopped for all services.
150148
```
151149
@@ -163,8 +161,7 @@ Stopping replication ...
163161
| Stopping Git replication ...
164162
| Stopping MySQL replication ...
165163
| Stopping Redis replication ...
166-
| Stopping Elasticsearch replication ...{% if currentVersion ver_lt "[email protected]" %}
167-
| Stopping OpenVPN tunnel ...{% endif %}
164+
| Stopping Elasticsearch replication ...
168165
| Success: replication was stopped for all services.
169166
Switching out of replica mode ...
170167
| Success: Replication configuration has been removed.

content/admin/enterprise-management/cluster-network-configuration.md

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ If a network level firewall is in place between nodes, these ports will need to
7171
| 8302/UDP | Consul |
7272
| 25827/UDP | Collectd |
7373

74-
7574
### Configuring a load balancer
7675

7776
We recommend an external TCP-based load balancer that supports the PROXY protocol to distribute traffic across nodes. Consider these load balancer configurations:

content/admin/enterprise-management/creating-a-high-availability-replica.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This example configuration uses a primary and two replicas, which are located in
5151
(replica2)$ ghe-repl-setup --add <em>PRIMARY IP</em>
5252
(replica2)$ ghe-repl-start
5353
```
54-
3. By default, replicas are configured to the same datacenter{% if currentVersion ver_gt "[email protected]" %}, and will now attempt to seed from an existing node in the same datacenter{% endif %}. Configure the replicas for different datacenters by setting a different value for the datacenter option. The specific values can be anything you would like as long as they are different from each other. Run the `ghe-repl-node` command on each node and specify the datacenter.
54+
3. By default, replicas are configured to the same datacenter, and will now attempt to seed from an existing node in the same datacenter. Configure the replicas for different datacenters by setting a different value for the datacenter option. The specific values can be anything you would like as long as they are different from each other. Run the `ghe-repl-node` command on each node and specify the datacenter.
5555

5656
On the primary:
5757
```shell

content/admin/overview/about-the-github-enterprise-server-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ For the complete documentation for {% data variables.product.prodname_enterprise
1515

1616
- Perform changes to the {% data variables.enterprise.management_console %}. For more information, see "[{% data variables.enterprise.management_console %}](/enterprise/{{ currentVersion }}/user/rest/reference/enterprise-admin#management-console)."
1717
- Collect statistics about your instance. For more information, see "[Admin stats](/enterprise/{{ currentVersion }}/user/rest/reference/enterprise-admin#admin-stats)."
18-
- Configure LDAP sync. For more information, see "[LDAP](/enterprise/{{ currentVersion }}/user/rest/reference/enterprise-admin#ldap)."{% if currentVersion ver_gt "[email protected]" %}
19-
- Manage your enterprise account. For more information, see "[Enterprise accounts](/v4/guides/managing-enterprise-accounts)."{% endif %}
18+
- Configure LDAP sync. For more information, see "[LDAP](/enterprise/{{ currentVersion }}/user/rest/reference/enterprise-admin#ldap)."
19+
- Manage your enterprise account. For more information, see "[Enterprise accounts](/v4/guides/managing-enterprise-accounts)."

content/admin/policies/enforcing-repository-management-policies-in-your-enterprise.md

-1
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,3 @@ If necessary, you can prevent repository administrators from changing anonymous
230230
8. Optionally, to prevent repository admins from changing this setting for this repository, select **Prevent repository admins from changing anonymous Git read access**.
231231
![Select checkbox to prevent repository admins from changing anonymous Git read access for this repository](/assets/images/enterprise/site-admin-settings/lock_anonymous_git_access_for_specific_repo.png)
232232

233-

content/developers/apps/authorizing-oauth-apps.md

-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ Name | Type | Description
143143

144144
##### Response
145145

146-
147146
{% if currentVersion == "free-pro-team@latest" %}
148147
```JSON
149148
{

content/developers/apps/creating-ci-tests-with-the-checks-api.md

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ versions:
99
---
1010

1111

12-
1312
### Introduction
1413

1514
This guide will introduce you to [Github Apps](/apps/) and the [Checks API](/v3/checks/), which you'll use to build a continuous integration (CI) server that runs tests.

content/developers/apps/identifying-and-authorizing-users-for-github-apps.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,8 @@ While most of your API interaction should occur using your server-to-server inst
273273

274274
##### Git Refs
275275

276-
* [Create a reference](/v3/git/refs/#create-a-reference){% if currentVersion != "free-pro-team@latest" and currentVersion ver_lt "[email protected]" %}
277-
* [List references](/v3/git/refs/#list-references)
278-
* [Get a reference](/v3/git/refs/#get-a-reference){% else %}
279-
* [Get a reference](/v3/git/refs/#get-a-reference)
280-
* [List matching references](/v3/git/refs/#list-matching-references){% endif %}
276+
* [Create a reference](/v3/git/refs/#create-a-reference)* [Get a reference](/v3/git/refs/#get-a-reference)
277+
* [List matching references](/v3/git/refs/#list-matching-references)
281278
* [Update a reference](/v3/git/refs/#update-a-reference)
282279
* [Delete a reference](/v3/git/refs/#delete-a-reference)
283280

content/developers/apps/migrating-oauth-apps-to-github-apps.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ versions:
1111

1212
This article provides guidelines for existing integrators who are considering migrating from an OAuth App to a GitHub App.
1313

14-
1514
### Reasons for switching to GitHub Apps
1615

1716
[GitHub Apps](/apps/) are the officially recommended way to integrate with GitHub because they offer many advantages over a pure OAuth-based integration:

content/developers/apps/setting-up-your-development-environment-to-create-a-github-app.md

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ versions:
99
---
1010

1111

12-
1312
### Introduction
1413

1514
This guide will walk through the steps needed to configure a GitHub App and run it on a server. GitHub Apps require some setup steps to manage webhook events and connect the app registration on GitHub to your code. The app in this guide serves as a foundation that you can use to extend and build new GitHub Apps.

content/developers/apps/using-the-github-api-in-your-app.md

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ versions:
1010
---
1111

1212

13-
1413
### Introduction
1514

1615
This guide will help you build a GitHub App and run it on a server. The app you build will add a label to all new issues opened in the repository where the app is installed.

content/developers/overview/managing-deploy-keys.md

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ versions:
1010
---
1111

1212

13-
1413
You can manage SSH keys on your servers when automating deployment scripts using SSH agent forwarding, HTTPS with OAuth tokens, deploy keys, or machine users.
1514

1615
### SSH agent forwarding

content/developers/overview/replacing-github-services.md

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ As an alternative to the email service, you can now start using email notificati
1919

2020
{% endnote %}
2121

22-
2322
### Deprecation timeline
2423

2524
- **October 1, 2018**: GitHub discontinued allowing users to install services. We removed GitHub Services from the GitHub.com user interface.

content/developers/webhooks-and-events/about-webhooks.md

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ versions:
99
---
1010

1111

12-
1312
Webhooks allow you to build or set up integrations, such as [{% data variables.product.prodname_github_app %}s](/apps/building-github-apps/) or [{% data variables.product.prodname_oauth_app %}s](/apps/building-oauth-apps/), which subscribe to certain events on GitHub.com. When one of those events is triggered, we'll send a HTTP POST payload to the webhook's configured URL. Webhooks can be used to update an external issue tracker, trigger CI builds, update a backup mirror, or even deploy to your production server. You're only limited by your imagination.
1413

1514
Webhooks can be installed on{% if currentVersion != "free-pro-team@latest" %} a [{% data variables.product.prodname_ghe_server %} instance](/v3/enterprise-admin/global_webhooks/),{% endif %} an [organization][org-hooks], a specific [repository][repo-hooks], or a {% data variables.product.prodname_github_app %}. Once installed, the webhook will be sent each time one or more subscribed events occurs.

content/developers/webhooks-and-events/github-event-types.md

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ The Events API can return different types of events triggered by activity on Git
1616

1717
{% endif %}
1818

19-
2019
### Event object common properties
2120

2221
The event objects returned from the Events API endpoints have the same structure.

content/developers/webhooks-and-events/issue-event-types.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ versions:
1111

1212
Issue events are triggered by activity in issues and pull requests and are available in the [Issue Events API](/v3/issues/events) and the [Timeline Events API](/v3/issues/timeline). Each event type specifies whether the event is available in the Issue Events or Timeline Events APIs.
1313

14-
1514
GitHub's REST API considers every pull request to be an issue, but not every issue is a pull request. For this reason, the Issue Events and Timeline Events endpoints may return both issues and pull requests in the response. Pull requests have a `pull_request` property in the `issue` object. Because pull requests are issues, issue and pull request numbers do not overlap in a repository. For example, if you open your first issue in a repository, the number will be 1. If you then open a pull request, the number will be 2. Each event type specifies if the event occurs in pull request, issues, or both.
1615

1716
### Issue event object common properties

content/developers/webhooks-and-events/testing-webhooks.md

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ versions:
99
---
1010

1111

12-
1312
Now that you've [configured your local server](/webhooks/configuring/), you might
1413
be interested in pushing your code to the limits. To that end, GitHub's webhooks
1514
view provides some tooling for testing your deployed payloads.

content/developers/webhooks-and-events/webhook-events-and-payloads.md

-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ versions:
2020

2121
You can create webhooks that subscribe to the events listed on this page. Each webhook event includes a description of the webhook properties and an example payload. For more information, see "[Creating webhooks](/webhooks/creating/)."
2222

23-
2423
### Webhook payload object common properties
2524

2625
Each webhook event payload also contains properties unique to the event. You can find the unique properties in the individual event type sections.
@@ -1295,7 +1294,6 @@ This event occurs when someone triggers a workflow run on GitHub or sends a `POS
12951294
{{ webhookPayloadsForCurrentVersion.workflow_dispatch }}
12961295
{% endif %}
12971296
1298-
12991297
### workflow_run
13001298
13011299
When a {% data variables.product.prodname_actions %} workflow run is requested or completed. For more information, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_run)."

content/github/administering-a-repository/about-branch-restrictions.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ versions:
99
enterprise-server: '*'
1010
---
1111

12-
When you enable branch restrictions, only users{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %},{% else %} or{% endif %} teams{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %}, or apps{% endif %} that have been given permission can push to the protected branch. For more information, see "[Enabling branch restrictions](/articles/enabling-branch-restrictions)" and "[About protected branches](/articles/about-protected-branches)." You can view and edit the users{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %},{% else %} or{% endif %} teams{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %}, or apps{% endif %} with push access to a protected branch in the protected branch's settings.
12+
When you enable branch restrictions, only users, teams, or apps that have been given permission can push to the protected branch. For more information, see "[Enabling branch restrictions](/articles/enabling-branch-restrictions)" and "[About protected branches](/articles/about-protected-branches)." You can view and edit the users, teams, or apps with push access to a protected branch in the protected branch's settings.
1313

14-
You can only give push access to a protected branch to users{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %},{% else %} or{% endif %} teams{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %}, or installed {% data variables.product.prodname_github_apps %}{% endif %} with `write` access to a repository.
14+
You can only give push access to a protected branch to users, teams, or installed {% data variables.product.prodname_github_apps %} with `write` access to a repository.
1515

16-
People{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %} and apps{% endif %} with admin permissions to a repository are always able to push to a protected branch.
16+
People and apps with admin permissions to a repository are always able to push to a protected branch.
1717

1818
{% tip %}
1919

20-
**Note:** If "Include administrators" is selected, you've enabled required status checks on the branch, and if any status checks fail, any attempt to push changes to the protected branch will also fail, even for people{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %} and apps{% endif %} with admin permissions. For more information, see "[Enabling required status checks](/articles/enabling-required-status-checks)."
20+
**Note:** If "Include administrators" is selected, you've enabled required status checks on the branch, and if any status checks fail, any attempt to push changes to the protected branch will also fail, even for people and apps with admin permissions. For more information, see "[Enabling required status checks](/articles/enabling-required-status-checks)."
2121

2222
{% endtip %}
2323

0 commit comments

Comments
 (0)