release-please 13.4.11 → 13.4.12

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,15 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ### [13.4.12](https://github.com/googleapis/release-please/compare/v13.4.11...v13.4.12) (2022-02-22)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * address false-positive matches for autorelease branch naming ([#1311](https://github.com/googleapis/release-please/issues/1311)) ([c5e76dc](https://github.com/googleapis/release-please/commit/c5e76dc8202958ed5af0f3635188261b8845f561)), closes [#1310](https://github.com/googleapis/release-please/issues/1310)
13
+ * catch FileNotFound error when building changeset ([#1306](https://github.com/googleapis/release-please/issues/1306)) ([3944b17](https://github.com/googleapis/release-please/commit/3944b17f33500cecc63a1ff63db81cdbd50ce1a1))
14
+ * manifest config should allow overriding labels ([#1303](https://github.com/googleapis/release-please/issues/1303)) ([f4d0314](https://github.com/googleapis/release-please/commit/f4d0314d1a394389a233ba9e1383852f0875dcd1)), closes [#1302](https://github.com/googleapis/release-please/issues/1302)
15
+
7
16
  ### [13.4.11](https://github.com/googleapis/release-please/compare/v13.4.10...v13.4.11) (2022-02-18)
8
17
 
9
18
 
@@ -883,7 +883,7 @@ class GitHub {
883
883
  content = await this.getFileContentsOnBranch(update.path, defaultBranch);
884
884
  }
885
885
  catch (err) {
886
- if (err.status !== 404)
886
+ if (!(err instanceof errors_1.FileNotFoundError))
887
887
  throw err;
888
888
  // if the file is missing and create = false, just continue
889
889
  // to the next update, otherwise create the file.
@@ -629,6 +629,8 @@ async function parseConfig(github, configFile, branch) {
629
629
  for (const path in config.packages) {
630
630
  repositoryConfig[path] = mergeReleaserConfig(defaultConfig, extractReleaserConfig(config.packages[path]));
631
631
  }
632
+ const configLabel = config['label'];
633
+ const configReleaseLabel = config['release-label'];
632
634
  const manifestOptions = {
633
635
  bootstrapSha: config['bootstrap-sha'],
634
636
  lastReleaseSha: config['last-release-sha'],
@@ -636,6 +638,8 @@ async function parseConfig(github, configFile, branch) {
636
638
  separatePullRequests: config['separate-pull-requests'],
637
639
  groupPullRequestTitlePattern: config['group-pull-request-title-pattern'],
638
640
  plugins: config['plugins'],
641
+ labels: configLabel === undefined ? undefined : [configLabel],
642
+ releaseLabels: configReleaseLabel === undefined ? undefined : [configReleaseLabel],
639
643
  };
640
644
  return { config: repositoryConfig, options: manifestOptions };
641
645
  }
@@ -82,8 +82,12 @@ exports.BranchName = BranchName;
82
82
  * @see https://github.com/googleapis/releasetool
83
83
  */
84
84
  const AUTORELEASE_PATTERN = /^release-?(?<component>[\w-.]*)?-v(?<version>[0-9].*)$/;
85
+ const RELEASE_PLEASE_BRANCH_PREFIX = 'release-please--branches';
85
86
  class AutoreleaseBranchName extends BranchName {
86
87
  static matches(branchName) {
88
+ if (branchName.startsWith(RELEASE_PLEASE_BRANCH_PREFIX)) {
89
+ return false;
90
+ }
87
91
  return !!branchName.match(AUTORELEASE_PATTERN);
88
92
  }
89
93
  constructor(branchName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "13.4.11",
3
+ "version": "13.4.12",
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",