release-please 15.8.2 → 15.9.1
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 +20 -0
- package/README.md +1 -1
- package/build/src/factories/plugin-factory.js +4 -1
- package/build/src/factory.js +3 -2
- package/build/src/plugins/cargo-workspace.js +5 -1
- package/build/src/strategies/{salesforce.d.ts → sfdx.d.ts} +1 -1
- package/build/src/strategies/{salesforce.js → sfdx.js} +6 -6
- package/build/src/updaters/{salesforce → sfdx}/sfdx-project-json.d.ts +1 -1
- package/build/src/updaters/{salesforce → sfdx}/sfdx-project-json.js +1 -1
- package/build/src/util/pull-request-title.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [15.9.1](https://github.com/googleapis/release-please/compare/v15.9.0...v15.9.1) (2023-03-14)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **cargo-workspace:** Validate Cargo.toml version field ([#1877](https://github.com/googleapis/release-please/issues/1877)) ([0303e2e](https://github.com/googleapis/release-please/commit/0303e2eb9fb082bd9657baa117961d8567eba7e6))
|
|
13
|
+
|
|
14
|
+
## [15.9.0](https://github.com/googleapis/release-please/compare/v15.8.2...v15.9.0) (2023-03-14)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* Support for "@" sign in component name ([#1873](https://github.com/googleapis/release-please/issues/1873)) ([d3b2f2f](https://github.com/googleapis/release-please/commit/d3b2f2f72c5aada66d3297d38b26d4aa3661177c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* Allow linked-versions to skip merging pull requests ([#1779](https://github.com/googleapis/release-please/issues/1779)) ([dc48b55](https://github.com/googleapis/release-please/commit/dc48b55b459754493513da30f68dc2588d3e30d4))
|
|
25
|
+
* **refactor:** Rename Salesforce to sfdx ([#1829](https://github.com/googleapis/release-please/issues/1829)) ([122820d](https://github.com/googleapis/release-please/commit/122820d5a38a401e1bbdc4878b02f94cf405ad0e))
|
|
26
|
+
|
|
7
27
|
## [15.8.2](https://github.com/googleapis/release-please/compare/v15.8.1...v15.8.2) (2023-03-13)
|
|
8
28
|
|
|
9
29
|
|
package/README.md
CHANGED
|
@@ -150,7 +150,7 @@ Release Please automates releases for the following flavors of repositories:
|
|
|
150
150
|
| `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 |
|
|
151
151
|
| `ruby` | A repository with a version.rb and a CHANGELOG.md |
|
|
152
152
|
| `rust` | A Rust repository, with a Cargo.toml (either as a crate or workspace) and a CHANGELOG.md |
|
|
153
|
-
| `
|
|
153
|
+
| `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 |
|
|
154
154
|
| `simple` | [A repository with a version.txt and a CHANGELOG.md](https://github.com/googleapis/gapic-generator) |
|
|
155
155
|
| `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) |
|
|
156
156
|
|
|
@@ -22,7 +22,10 @@ const errors_1 = require("../errors");
|
|
|
22
22
|
const sentence_case_1 = require("../plugins/sentence-case");
|
|
23
23
|
const group_priority_1 = require("../plugins/group-priority");
|
|
24
24
|
const pluginFactories = {
|
|
25
|
-
'linked-versions': options => new linked_versions_1.LinkedVersions(options.github, options.targetBranch, options.repositoryConfig, options.type.groupName, options.type.components
|
|
25
|
+
'linked-versions': options => new linked_versions_1.LinkedVersions(options.github, options.targetBranch, options.repositoryConfig, options.type.groupName, options.type.components, {
|
|
26
|
+
...options,
|
|
27
|
+
...options.type,
|
|
28
|
+
}),
|
|
26
29
|
'cargo-workspace': options => new cargo_workspace_1.CargoWorkspace(options.github, options.targetBranch, options.repositoryConfig, {
|
|
27
30
|
...options,
|
|
28
31
|
...options.type,
|
package/build/src/factory.js
CHANGED
|
@@ -40,7 +40,7 @@ const python_1 = require("./strategies/python");
|
|
|
40
40
|
const ruby_1 = require("./strategies/ruby");
|
|
41
41
|
const ruby_yoshi_1 = require("./strategies/ruby-yoshi");
|
|
42
42
|
const rust_1 = require("./strategies/rust");
|
|
43
|
-
const
|
|
43
|
+
const sfdx_1 = require("./strategies/sfdx");
|
|
44
44
|
const simple_1 = require("./strategies/simple");
|
|
45
45
|
const terraform_module_1 = require("./strategies/terraform-module");
|
|
46
46
|
const helm_1 = require("./strategies/helm");
|
|
@@ -93,7 +93,8 @@ const releasers = {
|
|
|
93
93
|
ruby: options => new ruby_1.Ruby(options),
|
|
94
94
|
'ruby-yoshi': options => new ruby_yoshi_1.RubyYoshi(options),
|
|
95
95
|
rust: options => new rust_1.Rust(options),
|
|
96
|
-
salesforce: options => new
|
|
96
|
+
salesforce: options => new sfdx_1.Sfdx(options),
|
|
97
|
+
sfdx: options => new sfdx_1.Sfdx(options),
|
|
97
98
|
simple: options => new simple_1.Simple(options),
|
|
98
99
|
'terraform-module': options => new terraform_module_1.TerraformModule(options),
|
|
99
100
|
helm: options => new helm_1.Helm(options),
|
|
@@ -26,6 +26,7 @@ const pull_request_body_1 = require("../util/pull-request-body");
|
|
|
26
26
|
const branch_name_1 = require("../util/branch-name");
|
|
27
27
|
const versioning_strategy_1 = require("../versioning-strategy");
|
|
28
28
|
const cargo_lock_1 = require("../updaters/rust/cargo-lock");
|
|
29
|
+
const errors_1 = require("../errors");
|
|
29
30
|
/**
|
|
30
31
|
* The plugin analyzed a cargo workspace and will bump dependencies
|
|
31
32
|
* of managed packages if those dependencies are being updated.
|
|
@@ -64,7 +65,10 @@ class CargoWorkspace extends workspace_1.WorkspacePlugin {
|
|
|
64
65
|
}
|
|
65
66
|
const version = (_d = manifest.package) === null || _d === void 0 ? void 0 : _d.version;
|
|
66
67
|
if (!version) {
|
|
67
|
-
throw new
|
|
68
|
+
throw new errors_1.ConfigurationError(`package manifest at ${manifestPath} is missing [package.version]`, 'cargo-workspace', `${this.github.repository.owner}/${this.github.repository.repo}`);
|
|
69
|
+
}
|
|
70
|
+
else if (typeof version !== 'string') {
|
|
71
|
+
throw new errors_1.ConfigurationError(`package manifest at ${manifestPath} has an invalid [package.version]`, 'cargo-workspace', `${this.github.repository.owner}/${this.github.repository.repo}`);
|
|
68
72
|
}
|
|
69
73
|
allCrates.push({
|
|
70
74
|
path,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseStrategy, BuildUpdatesOptions } from './base';
|
|
2
2
|
import { Update } from '../update';
|
|
3
3
|
import { GitHubFileContents } from '@google-automations/git-file-utils';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class Sfdx extends BaseStrategy {
|
|
5
5
|
private sfdxProjectJsonContents?;
|
|
6
6
|
protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>;
|
|
7
7
|
getDefaultPackageName(): Promise<string | undefined>;
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
// See the License for the specific language governing permissions and
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.Sfdx = void 0;
|
|
17
17
|
const base_1 = require("./base");
|
|
18
18
|
const changelog_1 = require("../updaters/changelog");
|
|
19
19
|
const errors_1 = require("../errors");
|
|
20
|
-
const sfdx_project_json_1 = require("../updaters/
|
|
20
|
+
const sfdx_project_json_1 = require("../updaters/sfdx/sfdx-project-json");
|
|
21
21
|
const sfdxProjectJsonFileName = 'sfdx-project.json';
|
|
22
|
-
class
|
|
22
|
+
class Sfdx extends base_1.BaseStrategy {
|
|
23
23
|
async buildUpdates(options) {
|
|
24
24
|
const updates = [];
|
|
25
25
|
const version = options.newVersion;
|
|
@@ -54,7 +54,7 @@ class Salesforce extends base_1.BaseStrategy {
|
|
|
54
54
|
}
|
|
55
55
|
catch (e) {
|
|
56
56
|
if (e instanceof errors_1.FileNotFoundError) {
|
|
57
|
-
throw new errors_1.MissingRequiredFileError(this.addPath(sfdxProjectJsonFileName), '
|
|
57
|
+
throw new errors_1.MissingRequiredFileError(this.addPath(sfdxProjectJsonFileName), 'sfdx', `${this.repository.owner}/${this.repository.repo}`);
|
|
58
58
|
}
|
|
59
59
|
throw e;
|
|
60
60
|
}
|
|
@@ -62,5 +62,5 @@ class Salesforce extends base_1.BaseStrategy {
|
|
|
62
62
|
return this.sfdxProjectJsonContents;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
exports.
|
|
66
|
-
//# sourceMappingURL=
|
|
65
|
+
exports.Sfdx = Sfdx;
|
|
66
|
+
//# sourceMappingURL=sfdx.js.map
|
|
@@ -9,7 +9,7 @@ export type SfdxProjectFile = {
|
|
|
9
9
|
name: string;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* This updates a
|
|
12
|
+
* This updates a sfdx sfdx-project.json file's main version.
|
|
13
13
|
*/
|
|
14
14
|
export declare class SfdxProjectJson extends DefaultUpdater {
|
|
15
15
|
/**
|
|
@@ -18,7 +18,7 @@ const json_stringify_1 = require("../../util/json-stringify");
|
|
|
18
18
|
const logger_1 = require("../../util/logger");
|
|
19
19
|
const default_1 = require("../default");
|
|
20
20
|
/**
|
|
21
|
-
* This updates a
|
|
21
|
+
* This updates a sfdx sfdx-project.json file's main version.
|
|
22
22
|
*/
|
|
23
23
|
class SfdxProjectJson extends default_1.DefaultUpdater {
|
|
24
24
|
/**
|
|
@@ -36,7 +36,7 @@ function generateMatchPattern(pullRequestTitlePattern, logger = logger_1.logger)
|
|
|
36
36
|
.replace('(', '\\(')
|
|
37
37
|
.replace(')', '\\)')
|
|
38
38
|
.replace('${scope}', '(\\((?<branch>[\\w-./]+)\\))?')
|
|
39
|
-
.replace('${component}', ' ?(?<component
|
|
39
|
+
.replace('${component}', ' ?(?<component>@?[\\w-./]*)?')
|
|
40
40
|
.replace('${version}', 'v?(?<version>[0-9].*)')
|
|
41
41
|
.replace('${branch}', '(?<branch>[\\w-./]+)?')}$`);
|
|
42
42
|
}
|