release-please 15.8.2 → 15.9.0

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,19 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [15.9.0](https://github.com/googleapis/release-please/compare/v15.8.2...v15.9.0) (2023-03-14)
8
+
9
+
10
+ ### Features
11
+
12
+ * Support for "@" sign in component name ([#1873](https://github.com/googleapis/release-please/issues/1873)) ([d3b2f2f](https://github.com/googleapis/release-please/commit/d3b2f2f72c5aada66d3297d38b26d4aa3661177c))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 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))
18
+ * **refactor:** Rename Salesforce to sfdx ([#1829](https://github.com/googleapis/release-please/issues/1829)) ([122820d](https://github.com/googleapis/release-please/commit/122820d5a38a401e1bbdc4878b02f94cf405ad0e))
19
+
7
20
  ## [15.8.2](https://github.com/googleapis/release-please/compare/v15.8.1...v15.8.2) (2023-03-13)
8
21
 
9
22
 
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
- | `salesforce` | A repository with a sfdx-project.json and a CHANGELOG.md |
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,
@@ -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 salesforce_1 = require("./strategies/salesforce");
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 salesforce_1.Salesforce(options),
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),
@@ -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 Salesforce extends BaseStrategy {
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.Salesforce = void 0;
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/salesforce/sfdx-project-json");
20
+ const sfdx_project_json_1 = require("../updaters/sfdx/sfdx-project-json");
21
21
  const sfdxProjectJsonFileName = 'sfdx-project.json';
22
- class Salesforce extends base_1.BaseStrategy {
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), 'salesforce', `${this.repository.owner}/${this.repository.repo}`);
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.Salesforce = Salesforce;
66
- //# sourceMappingURL=salesforce.js.map
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 Salesfore sfdx-project.json file's main version.
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 Salesfore sfdx-project.json file's main version.
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>[\\w-./]*)?')
39
+ .replace('${component}', ' ?(?<component>@?[\\w-./]*)?')
40
40
  .replace('${version}', 'v?(?<version>[0-9].*)')
41
41
  .replace('${branch}', '(?<branch>[\\w-./]+)?')}$`);
42
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "15.8.2",
3
+ "version": "15.9.0",
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",