You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Maintaining this template:** If you notice that any of these steps become out-of-date, open a pull request to update this [issue template](https://github.com/github/docs-internal/blob/main/.github/actions-scripts/enterprise-server-issue-templates/release-issue.md).
2
+
1
3
## To enable the new version
2
4
3
5
**Do these steps in a local checkout to create a GHES release branch with passing tests:**
4
6
7
+
If you aren't comfortable going through the steps alone, sync up with a docs engineer to pair with.
8
+
9
+
-[ ] Create a new branch from `main` with the name `ghes-<RELEASE>-megabranch`. e.g. `ghes-3.2-megabranch`.
5
10
-[ ] In [lib/enterprise-server-releases.js](https://github.com/github/docs-internal/blob/main/lib/enterprise-server-releases.js):
6
-
- [] Prepend the new release number to the `supported` array.
7
-
- [] Increment the `next` variable above the `supported` array (e.g., new release number + `.1`)
8
-
-[ ] Update the GHES dates file (requires a PAT in a local `.env` file):
11
+
-[ ] Prepend the new release number to the `supported` array.
12
+
-[ ] Increment the `next` variable above the `supported` array (e.g., new release number + `.1`)
13
+
-[ ] Update the GHES dates file:
14
+
-[ ] Make sure you have a `.env` file at the root directory of your local checkout, and that it contains a PAT in the format of `GITHUB_TOKEN=<token>`.
15
+
-[ ] Run the script to update the dates file:
16
+
9
17
```
10
18
script/update-enterprise-dates.js
11
19
```
12
20
- [ ] Create REST files based on previous version:
- [ ] Create a placeholder release notes file called `data/release-notes/<RELEASE NUMBER>/PLACEHOLDER.yml`. For example `data/release-notes/3-1/PLACEHOLDER.yml`. Add the following placeholder content to the file:
- [ ] Create a placeholder release notes file called `data/release-notes/<PRODUCT>/<RELEASE NUMBER>/PLACEHOLDER.yml`. For example `data/release-notes/3-1/PLACEHOLDER.yml`. Add the following placeholder content to the file:
36
+
37
+
```
38
+
date: '2021-05-04'
39
+
release_candidate: true
40
+
deprecated: false
41
+
intro: PLACEHOLDER
42
+
sections:
31
43
bugs:
32
-
- PLACEHOLDER
44
+
- PLACEHOLDER
33
45
known_issues:
34
-
- PLACEHOLDER
35
-
```
36
-
**Note:** All of the content in this file will be updated when the release notes are created in the megabranch including the filename `PLACEHOLDER.yml`. You can update the date or leave it as-is and wait to update it when the release notes are finalized.
46
+
- PLACEHOLDER
47
+
```
48
+
49
+
**Note:** All of the content in this file will be updated when the release notes are created in the megabranch including the filename `PLACEHOLDER.yml`. You can update the date or leave it as-is and wait to update it when the release notes are finalized.
37
50
- [ ] Create the search indices for the new release:
38
-
```
39
-
npm run sync-search-ghes-release
40
-
```
41
51
42
-
Check in the updated `lib/search/cached-index-names.json`.
52
+
```
53
+
npm run sync-search-ghes-release
54
+
```
55
+
56
+
Check in the updated `lib/search/cached-index-names.json`.
### When the `docs-internal` release branch is open
49
64
50
65
- [ ] Add a label to the PR in this format:
51
-
```
52
-
sync-english-index-for-<PLAN@RELEASE>
53
-
```
54
-
☝️ This will run a workflow **on every push to the PR** that will sync **only** the English index for the new version. This will make the GHES content searchable on staging throughout content creation, and will ensure the search updates go live at the same time the content is published. See [`contributing/search.md`](https://github.com/github/docs-internal/blob/main/contributing/search.md) for details.
55
66
56
-
- [ ] In `github/github`, to create a new GHES release follow these steps:
67
+
```
68
+
sync-english-index-for-<PLAN@RELEASE>
69
+
```
70
+
71
+
☝️ This will run a workflow **on every push to the PR** that will sync **only** the English index for the new version. This will make the GHES content searchable on staging throughout content creation, and will ensure the search updates go live at the same time the content is published. See [`contributing/search.md`](https://github.com/github/docs-internal/blob/main/contributing/search.md) for details.
72
+
73
+
- [ ] In `github/github`, to create a new GHES release follow these steps (some of these steps may have already been done):
57
74
- [ ] Copy the previous release's root document to a new root document for this release `cp app/api/description/ghes-<LATEST RELEASE NUMBER>.yaml app/api/description/ghes-<NEXT RELEASE NUMBER>.yaml`.
58
75
- [ ] Update the `externalDocs.url` property in that file to use the new GHES release number.
59
76
- [ ] Copy the previous release's configuration file to a new configuration file for this release `cp app/api/description/config/releases/ghes-<LATEST RELEASE NUMBER>.yaml app/api/description/config/releases/ghes-<NEXT RELEASE NUMBER>.yaml`.
60
77
- [ ] Update the `variables.externalDocsUrl`, `variables.ghesVersion`, and `patch.[].value.url` in that file to use the new GHES release number.
61
78
- [ ] Update `published` in that file to `false`. **Note:** This is important to ensure that changes for the next version of the OpenAPI schema changes are not made public until the new version is released.
62
79
- [ ] Create a second PR based on the PR created ☝️ that toggles `published` to `true` in the `app/api/description/config/releases/ghes-<NEXT RELEASE NUMBER>.yaml` file. When this PR merges it will publish the new release to the `github/rest-api-description` repo and will trigger a pull request in the `github/docs-internal` repo with the schemas for the next GHES release. There is a step in this list to merge that PR in the "Before shipping the release branch" section.
63
80
64
-
### Maintaining this template
65
-
66
-
- [ ] If you notice that any of these steps become out-of-date, open a pull request to update this [issue template](https://github.com/github/docs-internal/blob/main/.github/actions-scripts/enterprise-server-issue-templates/release-issue.md).
67
-
68
81
### Troubleshooting
69
82
70
83
#### `OpenAPI dev mode check / check-schema-versions` failures
71
84
72
85
If the `OpenAPI dev mode check / check-schema-versions` check fails with the following message:
86
+
73
87
> :construction::warning: Your decorated and dereferenced schema files don't match. Ensure you're using decorated and dereferenced schemas from the automatically created pull requests by the 'github-openapi-bot' user. For more information, see 'script/rest/README.md'
74
88
75
89
- run `git checkout origin/main lib/rest/static/*`
@@ -78,7 +92,8 @@ If the `OpenAPI dev mode check / check-schema-versions` check fails with the fol
78
92
79
93
#### `Node.js tests / test content` failures
80
94
81
-
If the `Node.js tests / test content` check fails with the following message, the `lib/enterprise-dates.json` file is not up-to-date:
95
+
If the `Node.js tests / test content` check fails with the following message, the `lib/enterprise-dates.json` file is not up-to-date:
96
+
82
97
> FAIL tests/content/search.js ● search › has remote indexNames in every language for every supported GHE version
83
98
84
99
This file should be automatically updated, but you can also run `script/update-enterprise-dates.js` to update it. **Note:** If the test is still failing after running this script, look at the dates for this release. If the date is still inaccurate, it may be an issue with the source at https://github.com/github/enterprise-releases/blob/master/docs/supported-versions.md#release-lifecycle-dates. If that is the case, manually update the dates in the `lib/enterprise-dates.json` file.
@@ -87,11 +102,14 @@ This file should be automatically updated, but you can also run `script/update-e
87
102
88
103
- [ ] Add the GHES release notes to `data/release-notes/` and update the versioning frontmatter in `content/admin/release-notes.md` to `enterprise-server: '<=<RELEASE>'`
89
104
- [ ] Alert the Neon Squad (formally docs-ecosystem team) 1-2 days before the release to deploy to `github/github`. A PR should already be open in `github/github`, to change `published` to `true` in `app/api/description/config/releases/ghes-<NEXT RELEASE NUMBER>.yaml`. They will need to:
90
-
- [ ] Get the required approval from `@github/ecosystem-api-reviewers` then deploy the PR to dotcom. This process generally takes 30-90 minutes.
105
+
- [ ] Get the required approval from `@github/ecosystem-api-reviewers` then deploy the PR to dotcom. This process generally takes 30-90 minutes.
91
106
- [ ] Once the PR merges, make sure that the auto-generated PR titled "Update OpenAPI Descriptions" in doc-internal contains both the derefrenced and decorated JSON files for the new GHES release. If everything looks good, merge the "Update OpenAPI Description" PR into the GHES release megabranch.
92
107
- [ ] Add a blocking review to the auto-generated "Update OpenAPI Descriptions" PR in the public REST API description. (Remove this blocking review once the GHES release ships.)
108
+
- [ ] [Freeze the repos](https://github.com/github/docs-content/blob/main/docs-content-docs/docs-content-workflows/freezing.md) at least 1-2 days before the release, and post an announcement in Slack so everybody knows.
93
109
94
110
### 🚢 🛳️ 🚢 Shipping the release branch
95
111
112
+
- [ ] Remove `[DO NOT MERGE]` and other meta information from the PR title 😜.
96
113
- [ ] The `github/docs-internal` repo is frozen, and the `Repo Freeze Check / Prevent merging during deployment freezes (pull_request_target)` test is expected to fail. Use admin permissions to ship the release branch with this failure.
97
-
- [ ] Once smoke tests have passed, you can unfreeze the repos by deleting the `FREEZE` secret in both the `github/docs-internal` and `github/docs` repos. To delete the secrets, click the repo **Settings** tab and then click **Secrets** in the left sidebar. Click **Remove** next to the `FREEZE` secret.
114
+
- [ ] Do any required smoke tests.
115
+
- [ ] Once smoke tests have passed, you can [unfreeze the repos](https://github.com/github/docs-content/blob/main/docs-content-docs/docs-content-workflows/freezing.md) and post an announcement in Slack.
0 commit comments