release-please 13.19.3 → 13.19.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,14 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [13.19.4](https://github.com/googleapis/release-please/compare/v13.19.3...v13.19.4) (2022-07-25)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **commits:** remove content before and after BREAKING in body ([#1531](https://github.com/googleapis/release-please/issues/1531)) ([f75e49f](https://github.com/googleapis/release-please/commit/f75e49f6b751347456746d9c4068191d340c8e1e))
13
+ * **python:** make` __init__.py` bump underscore / hyphen agnostic ([4b25a47](https://github.com/googleapis/release-please/commit/4b25a475d53fd4f2eadd14619f701e51275f8e62))
14
+
7
15
  ## [13.19.3](https://github.com/googleapis/release-please/compare/v13.19.2...v13.19.3) (2022-07-08)
8
16
 
9
17
 
@@ -92,6 +92,7 @@ function toConventionalChangelogFormat(ast) {
92
92
  text: '', // "text" will be populated if a BREAKING CHANGE token is parsed.
93
93
  };
94
94
  visitWithAncestors(ast, ['breaking-change'], (node, ancestors) => {
95
+ let hitBreakingMarker = false;
95
96
  let parent = ancestors.pop();
96
97
  if (!parent) {
97
98
  return;
@@ -104,7 +105,13 @@ function toConventionalChangelogFormat(ast) {
104
105
  breaking.text = '';
105
106
  // We treat text from the BREAKING CHANGE marker forward as
106
107
  // the breaking change notes:
107
- visit(parent, ['text', 'newline'], (node) => {
108
+ visit(parent, ['breaking-change', 'text', 'newline'], (node) => {
109
+ if (node.type === 'breaking-change') {
110
+ hitBreakingMarker = true;
111
+ return;
112
+ }
113
+ if (!hitBreakingMarker)
114
+ return;
108
115
  breaking.text += node.value;
109
116
  });
110
117
  break;
@@ -90,20 +90,16 @@ class Python extends base_1.BaseStrategy {
90
90
  logger_1.logger.warn('No project/component found.');
91
91
  }
92
92
  else {
93
- updates.push({
94
- path: this.addPath(`${projectName}/__init__.py`),
93
+ [projectName, projectName.replace(/-/g, '_')]
94
+ .flatMap(packageName => [
95
+ `${packageName}/__init__.py`,
96
+ `src/${packageName}/__init__.py`,
97
+ ])
98
+ .forEach(packagePath => updates.push({
99
+ path: this.addPath(packagePath),
95
100
  createIfMissing: false,
96
- updater: new python_file_with_version_1.PythonFileWithVersion({
97
- version,
98
- }),
99
- });
100
- updates.push({
101
- path: this.addPath(`src/${projectName}/__init__.py`),
102
- createIfMissing: false,
103
- updater: new python_file_with_version_1.PythonFileWithVersion({
104
- version,
105
- }),
106
- });
101
+ updater: new python_file_with_version_1.PythonFileWithVersion({ version }),
102
+ }));
107
103
  }
108
104
  // There should be only one version.py, but foreach in case that is incorrect
109
105
  const versionPyFilesSearch = this.github.findFilesByFilenameAndRef('version.py', this.targetBranch, this.path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "13.19.3",
3
+ "version": "13.19.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",