release-please 15.11.0 → 15.11.2

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,22 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [15.11.2](https://github.com/googleapis/release-please/compare/v15.11.1...v15.11.2) (2023-07-10)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **deps:** Update dependency conventional-changelog-conventionalcommits to v6 ([#1974](https://github.com/googleapis/release-please/issues/1974)) ([1998564](https://github.com/googleapis/release-please/commit/1998564555c472f4eb850cdcec99a009dd76f8ca))
13
+ * **deps:** Update dependency conventional-changelog-writer to v6 ([#1975](https://github.com/googleapis/release-please/issues/1975)) ([a6aa293](https://github.com/googleapis/release-please/commit/a6aa293932200dd004024b8c8f6b458c2fa8f570))
14
+
15
+ ## [15.11.1](https://github.com/googleapis/release-please/compare/v15.11.0...v15.11.1) (2023-07-10)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **deps:** Update dependency conventional-commits-filter to v3 ([#1976](https://github.com/googleapis/release-please/issues/1976)) ([20b8f34](https://github.com/googleapis/release-please/commit/20b8f345624f2a7e639df1a50ebda2719f9c2423))
21
+ * **python:** Warn on dynamic pyproject.toml versioning ([#1983](https://github.com/googleapis/release-please/issues/1983)) ([5ee5baa](https://github.com/googleapis/release-please/commit/5ee5baa0932d3435034b96183fed308eaf47ef73))
22
+
7
23
  ## [15.11.0](https://github.com/googleapis/release-please/compare/v15.10.5...v15.11.0) (2023-05-31)
8
24
 
9
25
 
package/README.md CHANGED
@@ -139,6 +139,8 @@ recommend using squash-merge instead](#linear-git-commit-history-use-squash-merg
139
139
 
140
140
  ## Release Please bot does not create a release PR. Why?
141
141
 
142
+ ### Releasable Units
143
+
142
144
  Release Please creates a release pull request after it notices the default branch
143
145
  contains "releasable units" since the last release.
144
146
  A releasable unit is a commit to the branch with one of the following
@@ -148,12 +150,24 @@ prefixes: "feat", "fix", and "deps".
148
150
  Some languages have their specific releasable unit configuration. For example,
149
151
  "docs" is a prefix for releasable units in Java and Python.
150
152
 
153
+ ### Re-run Release Please
154
+
151
155
  If you think Release Please missed creating a release PR after a pull request
152
156
  with a releasable unit has been merged, please re-run `release-please`. If you are using
153
157
  the GitHub application, add `release-please:force-run` label to the merged pull request. If
154
158
  you are using the action, look for the failed invocation and retry the workflow run.
155
159
  Release Please will process the pull request immediately to find releasable units.
156
160
 
161
+ ### Existing Pull Requests with "autorelease: pending" label
162
+
163
+ For the GitHub application users, Release Please will not create a new pull request
164
+ if there's an existing pull request labeled as `autorelease: pending`.
165
+ To confirm this case, search for a pull request with the label.
166
+ (It's very likely it's the latest release pull request.)
167
+ If you find a release pull request with the label and it is not going to be released
168
+ (or already released), then remove the `autorelease: pending` label and re-run Release
169
+ Please.
170
+
157
171
  ## Strategy (Language) types supported
158
172
 
159
173
  Release Please automates releases for the following flavors of repositories:
@@ -173,7 +187,7 @@ Release Please automates releases for the following flavors of repositories:
173
187
  | `php` | A repository with a composer.json and a CHANGELOG.md |
174
188
  | `python` | [A Python repository, with a setup.py, setup.cfg, CHANGELOG.md](https://github.com/googleapis/python-storage) and optionally a pyproject.toml and a <project>/\_\_init\_\_.py |
175
189
  | `ruby` | A repository with a version.rb and a CHANGELOG.md |
176
- | `rust` | A Rust repository, with a Cargo.toml (either as a crate or workspace) and a CHANGELOG.md |
190
+ | `rust` | A Rust repository, with a Cargo.toml (either as a crate or workspace, although note that workspaces require a [manifest driven release](https://github.com/googleapis/release-please/blob/main/docs/manifest-releaser.md) and the "cargo-workspace" plugin) and a CHANGELOG.md |
177
191
  | `sfdx` | A repository with a [sfdx-project.json](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm) and a CHANGELOG.md |
178
192
  | `simple` | [A repository with a version.txt and a CHANGELOG.md](https://github.com/googleapis/gapic-generator) |
179
193
  | `terraform-module` | [A terraform module, with a version in the README.md, and a CHANGELOG.md](https://github.com/terraform-google-modules/terraform-google-project-factory) |
@@ -3,6 +3,7 @@ import { DefaultUpdater } from '../default';
3
3
  interface PyProjectContent {
4
4
  name: string;
5
5
  version: string;
6
+ dynamic?: string[];
6
7
  }
7
8
  /**
8
9
  * A subset of the contents of a `pyproject.toml`
@@ -15,8 +15,8 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PyProjectToml = exports.parsePyProject = void 0;
17
17
  const TOML = require("@iarna/toml");
18
- const toml_edit_1 = require("../../util/toml-edit");
19
18
  const logger_1 = require("../../util/logger");
19
+ const toml_edit_1 = require("../../util/toml-edit");
20
20
  const default_1 = require("../default");
21
21
  function parsePyProject(content) {
22
22
  return TOML.parse(content);
@@ -36,6 +36,12 @@ class PyProjectToml extends default_1.DefaultUpdater {
36
36
  const parsed = parsePyProject(content);
37
37
  const project = parsed.project || ((_a = parsed.tool) === null || _a === void 0 ? void 0 : _a.poetry);
38
38
  if (!(project === null || project === void 0 ? void 0 : project.version)) {
39
+ // Throw warning if the version is dynamically generated.
40
+ if ((project === null || project === void 0 ? void 0 : project.dynamic) && project.dynamic.includes('version')) {
41
+ const msg = "dynamic version found in 'pyproject.toml'. Skipping update.";
42
+ logger.warn(msg);
43
+ return content;
44
+ }
39
45
  const msg = 'invalid file';
40
46
  logger.error(msg);
41
47
  throw new Error(msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "15.11.0",
3
+ "version": "15.11.2",
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",
@@ -57,13 +57,13 @@
57
57
  "@types/yargs": "^17.0.0",
58
58
  "ajv": "^8.11.0",
59
59
  "ajv-formats": "^2.1.1",
60
- "c8": "^7.0.0",
60
+ "c8": "^8.0.0",
61
61
  "chai": "^4.2.0",
62
62
  "cross-env": "^7.0.0",
63
63
  "gts": "^3.1.0",
64
64
  "mocha": "^9.2.2",
65
65
  "nock": "^13.0.0",
66
- "sinon": "15.1.0",
66
+ "sinon": "15.2.0",
67
67
  "snap-shot-it": "^7.0.0"
68
68
  },
69
69
  "dependencies": {
@@ -82,9 +82,9 @@
82
82
  "@xmldom/xmldom": "^0.8.4",
83
83
  "chalk": "^4.0.0",
84
84
  "code-suggester": "^4.2.0",
85
- "conventional-changelog-conventionalcommits": "^5.0.0",
86
- "conventional-changelog-writer": "^5.0.0",
87
- "conventional-commits-filter": "^2.0.2",
85
+ "conventional-changelog-conventionalcommits": "^6.0.0",
86
+ "conventional-changelog-writer": "^6.0.0",
87
+ "conventional-commits-filter": "^3.0.0",
88
88
  "detect-indent": "^6.1.0",
89
89
  "diff": "^5.0.0",
90
90
  "figures": "^3.0.0",