release-please 15.10.2 → 15.10.4

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 CHANGED
@@ -4,6 +4,20 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [15.10.4](https://github.com/googleapis/release-please/compare/v15.10.3...v15.10.4) (2023-04-19)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * Add more trace logging when searching for latest release version ([#1922](https://github.com/googleapis/release-please/issues/1922)) ([c33cc81](https://github.com/googleapis/release-please/commit/c33cc8112fc366242182bcb3a28015c488f6140b))
13
+
14
+ ## [15.10.3](https://github.com/googleapis/release-please/compare/v15.10.2...v15.10.3) (2023-04-11)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * NeedsBootstrap computation also considers tags ([#1915](https://github.com/googleapis/release-please/issues/1915)) ([2773b6e](https://github.com/googleapis/release-please/commit/2773b6e8ae6bf7bd98adb89ed0eb702a1705b27b))
20
+
7
21
  ## [15.10.2](https://github.com/googleapis/release-please/compare/v15.10.1...v15.10.2) (2023-04-11)
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
- > :warning: **Important:** The additional messages must be added to the bottom of the commit.
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
@@ -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
  }
@@ -920,19 +920,23 @@ async function latestReleaseVersion(github, targetBranch, releaseFilter, config,
920
920
  commitShas.add(commitWithPullRequest.sha);
921
921
  const mergedPullRequest = commitWithPullRequest.pullRequest;
922
922
  if (!mergedPullRequest) {
923
+ logger.trace(`skipping commit: ${commitWithPullRequest.sha} missing merged pull request`);
923
924
  continue;
924
925
  }
925
926
  const branchName = branch_name_1.BranchName.parse(mergedPullRequest.headBranchName, logger);
926
927
  if (!branchName) {
928
+ logger.trace(`skipping commit: ${commitWithPullRequest.sha} unrecognized branch name: ${mergedPullRequest.headBranchName}`);
927
929
  continue;
928
930
  }
929
931
  // If branchPrefix is specified, ensure it is found in the branch name.
930
932
  // If branchPrefix is not specified, component should also be undefined.
931
933
  if (branchName.getComponent() !== branchPrefix) {
934
+ logger.trace(`skipping commit: ${commitWithPullRequest.sha} branch component ${branchName.getComponent()} doesn't match expected prefix: ${branchPrefix}`);
932
935
  continue;
933
936
  }
934
937
  const pullRequestTitle = pull_request_title_1.PullRequestTitle.parse(mergedPullRequest.title, config.pullRequestTitlePattern, logger);
935
938
  if (!pullRequestTitle) {
939
+ logger.trace(`skipping commit: ${commitWithPullRequest.sha} couldn't parse pull request title: ${mergedPullRequest.title}`);
936
940
  continue;
937
941
  }
938
942
  const version = pullRequestTitle.getVersion();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "15.10.2",
3
+ "version": "15.10.4",
4
4
  "description": "generate release PRs based on the conventionalcommits.org spec",
5
5
  "main": "./build/src/index.js",
6
6
  "bin": "./build/src/bin/release-please.js",