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
Copy file name to clipboardExpand all lines: guides/release-process.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,7 @@ _Note: It is advisable to notify the team that the `develop` branch is locked do
143
143
144
144
11. Review the release-specific documentation and changelog PR in [cypress-documentation](https://github.com/cypress-io/cypress-documentation). If there is not already a release-specific PR open, create one.
145
145
- Copy the changelog content for this version from the release PR above into `/docs/app/references/changelog.mdx`. Adjust any `docs.cypress.io` links to use host-relative paths.
146
+
- Add the release date in `_Released MM/DD/YYYY_` format below the version header in the `changelog.mdx` entry.
146
147
- Merge any release-specific documentation changes into the main release PR.
147
148
- You can view the doc's [branch deploy preview](https://github.com/cypress-io/cypress-documentation/blob/master/CONTRIBUTING.md#pull-requests) by clicking 'Details' on the PR's `netlify-cypress-docs/deploy-preview` GitHub status check.
Copy file name to clipboardExpand all lines: guides/writing-the-cypress-changelog.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,11 @@ The changelog should include anything that was merged into the `develop` branch
20
20
```md
21
21
## <RELEASE_VERSION>
22
22
23
-
_Released <RELEASE_DATE> (PENDING)_
24
-
25
23
**<CHANGE_SECTION:**
26
24
27
25
- <CHANGELOG_ENTRY>
28
26
```
29
27
30
-
The `RELEASE_DATE` follows the `Mon D, YYYY` format (three-letter month abbreviation, non-zero-padded day, four-digit year).
31
-
32
28
2. Each changelog entry is written and merged with the associated user-facing code change in [`cli/CHANGELOG.md`](../cli/CHANGELOG.md).
33
29
3. The changelog entry should be added to the associated change section. The supported change sections for the changelog (that should be listed in the order below) are:
34
30
@@ -75,7 +71,6 @@ No backticks for:
75
71
## Release
76
72
77
73
At the time of the release, the releaser will:
78
-
- remove the `(PENDING)` text next to the planned release date and adjust the date if needed
79
74
- ensure the Changelog is coherent
80
75
- ensure the change sections are in the correct order
console.log('Does not contain any user-facing changes that impact the next Cypress release.')
@@ -164,20 +180,20 @@ async function validateChangelog ({ changedFiles, nextVersion, pendingRelease, c
164
180
if(!hasChangeLogUpdate){
165
181
errors.push(`A changelog entry was not found in cli/CHANGELOG.md.`)
166
182
167
-
if(commits.length===1){
168
-
errors.push(`Please add a changelog entry that describes the changes. Include this entry under the section:\n\n${_printChangeLogExample(commits[0].semanticType,commits[0].prNumber,commits[0].associatedIssues)}`)
183
+
if(nonRevertedCommits.length===1){
184
+
errors.push(`Please add a changelog entry that describes the changes. Include this entry under the section:\n\n${_printChangeLogExample(nonRevertedCommits[0].semanticType,nonRevertedCommits[0].prNumber,nonRevertedCommits[0].associatedIssues)}`)
errors.push(`The changelog version does not contain the next Cypress version of ${nextVersion}. If the changelog version is correct, please correct the pull request title to correctly reflect the change being made.`)
- Fixed in [#77](https://github.com/cypress-io/cypress/pull/77).`)
@@ -169,8 +167,6 @@ _Released Jan 7, 2033 (PENDING)_
169
167
constchangelogContent=`
170
168
## 120.2.0
171
169
172
-
_Released Jan 7, 2033 (PENDING)_
173
-
174
170
**Performance:**
175
171
176
172
- Fixed in [#77](https://github.com/cypress-io/cypress/pull/77).`
@@ -196,8 +192,6 @@ _Released Jan 7, 2033 (PENDING)_
196
192
fs.readFileSync.returns(`
197
193
## 120.2.0
198
194
199
-
_Released Jan 7, 2033 (PENDING)_
200
-
201
195
**Misc:**
202
196
203
197
- Addresses [#77](https://github.com/cypress-io/cypress/issues/77) and [#88](https://github.com/cypress-io/cypress/issues/88).`)
@@ -253,6 +247,82 @@ _Released Jan 7, 2033 (PENDING)_
253
247
expect(console.log).to.be.calledWith('Does not contain changes that impact the next Cypress release.')
254
248
})
255
249
250
+
it('when a user-facing commit was reverted within the same release (conventional revert: style)',async()=>{
251
+
constchangedFiles=[
252
+
'packages/driver/lib/index.js',
253
+
'cli/CHANGELOG.md',
254
+
]
255
+
256
+
fs.readFileSync.returns(`
257
+
## 120.2.0
258
+
259
+
**Performance:**
260
+
261
+
- Fixed in [#77](https://github.com/cypress-io/cypress/pull/77).`)
262
+
263
+
awaitvalidateChangelog({
264
+
changedFiles,
265
+
commits: [
266
+
{
267
+
commitMessage: 'perf: do something faster (#77)',
268
+
prNumber: 77,
269
+
semanticType: 'perf',
270
+
},
271
+
{
272
+
commitMessage: 'fix: a bug (#88)',
273
+
prNumber: 88,
274
+
semanticType: 'fix',
275
+
},
276
+
{
277
+
// conventional-commits lowercase revert style
278
+
commitMessage: 'revert: "fix: a bug (#88)" (#99)',
279
+
prNumber: 99,
280
+
semanticType: 'revert',
281
+
},
282
+
],
283
+
})
284
+
285
+
expect(console.log).to.be.calledWith('It appears at a high-level your changelog entry is correct! The remaining validation is left to the pull request reviewers.')
286
+
})
287
+
288
+
it('when a user-facing commit was reverted within the same release (GitHub Revert style)',async()=>{
289
+
constchangedFiles=[
290
+
'packages/driver/lib/index.js',
291
+
'cli/CHANGELOG.md',
292
+
]
293
+
294
+
fs.readFileSync.returns(`
295
+
## 120.2.0
296
+
297
+
**Performance:**
298
+
299
+
- Fixed in [#77](https://github.com/cypress-io/cypress/pull/77).`)
expect(console.log).to.be.calledWith('It appears at a high-level your changelog entry is correct! The remaining validation is left to the pull request reviewers.')
324
+
})
325
+
256
326
it('when current branch is in SKIP_RELEASE_CHANGELOG_VALIDATION_FOR_BRANCHES env var',async()=>{
0 commit comments