release-please 15.10.1 → 15.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +25 -1
- package/build/src/changelog-notes/github.js +4 -1
- package/build/src/manifest.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [15.10.3](https://github.com/googleapis/release-please/compare/v15.10.2...v15.10.3) (2023-04-11)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* NeedsBootstrap computation also considers tags ([#1915](https://github.com/googleapis/release-please/issues/1915)) ([2773b6e](https://github.com/googleapis/release-please/commit/2773b6e8ae6bf7bd98adb89ed0eb702a1705b27b))
|
|
13
|
+
|
|
14
|
+
## [15.10.2](https://github.com/googleapis/release-please/compare/v15.10.1...v15.10.2) (2023-04-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **github-changelog-notes:** Prepend header to create parseable release notes ([#1912](https://github.com/googleapis/release-please/issues/1912)) ([3f53d40](https://github.com/googleapis/release-please/commit/3f53d40c8c3f927fffdf8973128e12450703a6e4))
|
|
20
|
+
|
|
7
21
|
## [15.10.1](https://github.com/googleapis/release-please/compare/v15.10.0...v15.10.1) (2023-04-10)
|
|
8
22
|
|
|
9
23
|
|
package/README.md
CHANGED
|
@@ -52,6 +52,26 @@ The most important prefixes you should have in mind are:
|
|
|
52
52
|
* `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change
|
|
53
53
|
(indicated by the `!`) and will result in a SemVer major.
|
|
54
54
|
|
|
55
|
+
### Linear git commit history (use squash-merge)
|
|
56
|
+
|
|
57
|
+
We **highly** recommend that you use squash-merges when merging pull requests.
|
|
58
|
+
A linear git history makes it much easier to:
|
|
59
|
+
|
|
60
|
+
* Follow history - commits are sorted by merge date and are not mixed between
|
|
61
|
+
pull requests
|
|
62
|
+
* Find and revert bugs - `git bisect` is helpful for tracking down which
|
|
63
|
+
change introduced a bug
|
|
64
|
+
* Control the release-please changelog - when you merge a PR, you may have
|
|
65
|
+
commit messages that make sense within the scope of the PR, but don't
|
|
66
|
+
make sense when merged in the main branch. For example, you make have
|
|
67
|
+
`feat: introduce feature A` and then `fix: some bugfix introduced in
|
|
68
|
+
the first commit`. The `fix` commit is actually irrelevant to the release
|
|
69
|
+
notes as there was never a bug experienced in the main branch.
|
|
70
|
+
* Keep a clean main branch - if you use something like red/green development
|
|
71
|
+
(create a failing test in commit A, then fix in commit B) and merge (or
|
|
72
|
+
rebase-merge), then there will be points in time in your main branch where
|
|
73
|
+
tests do not pass.
|
|
74
|
+
|
|
55
75
|
### What if my PR contains multiple fixes or features?
|
|
56
76
|
|
|
57
77
|
Release Please allows you to represent multiple changes in a single commit,
|
|
@@ -79,7 +99,7 @@ The above commit message will contain:
|
|
|
79
99
|
that it's a breaking change.
|
|
80
100
|
3. an entry for the feature **"update encode to support unicode"**.
|
|
81
101
|
|
|
82
|
-
|
|
102
|
+
:warning: **Important:** The additional messages must be added to the bottom of the commit.
|
|
83
103
|
|
|
84
104
|
## How do I change the version number?
|
|
85
105
|
|
|
@@ -113,6 +133,10 @@ END_COMMIT_OVERRIDE
|
|
|
113
133
|
The next time Release Please runs, it will use that override section as the
|
|
114
134
|
commit message instead of the merged commit message.
|
|
115
135
|
|
|
136
|
+
:warning: **Important:** This feature will not work with plain merges because
|
|
137
|
+
release-please does not know which commit(s) to apply the override to. [We
|
|
138
|
+
recommend using squash-merge instead](#linear-git-commit-history-use-squash-merge).
|
|
139
|
+
|
|
116
140
|
## Release Please bot does not create a release PR. Why?
|
|
117
141
|
|
|
118
142
|
Release Please creates a release pull request after it notices the default branch
|
|
@@ -19,7 +19,10 @@ class GitHubChangelogNotes {
|
|
|
19
19
|
this.github = github;
|
|
20
20
|
}
|
|
21
21
|
async buildNotes(_commits, options) {
|
|
22
|
-
|
|
22
|
+
const body = await this.github.generateReleaseNotes(options.currentTag, options.targetBranch, options.previousTag);
|
|
23
|
+
const date = new Date().toLocaleDateString('en-CA');
|
|
24
|
+
const header = `## ${options.version} (${date})`;
|
|
25
|
+
return `${header}\n\n${body}`;
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
exports.GitHubChangelogNotes = GitHubChangelogNotes;
|
package/build/src/manifest.js
CHANGED
|
@@ -225,7 +225,6 @@ class Manifest {
|
|
|
225
225
|
break;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
const needsBootstrap = releasesFound < expectedReleases;
|
|
229
228
|
if (releasesFound < expectedReleases) {
|
|
230
229
|
this.logger.warn(`Expected ${expectedReleases} releases, only found ${releasesFound}`);
|
|
231
230
|
// Fall back to looking for missing releases using expected tags
|
|
@@ -238,6 +237,7 @@ class Manifest {
|
|
|
238
237
|
releasesFound++;
|
|
239
238
|
}
|
|
240
239
|
}
|
|
240
|
+
const needsBootstrap = releasesFound < expectedReleases;
|
|
241
241
|
if (releasesFound < expectedReleases) {
|
|
242
242
|
this.logger.warn(`Expected ${expectedReleases} releases, only found ${releasesFound}`);
|
|
243
243
|
}
|
package/package.json
CHANGED