release-please 14.3.1 → 14.4.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,18 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [14.4.0](https://github.com/googleapis/release-please/compare/v14.3.1...v14.4.0) (2022-09-07)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* Update elixir version in module attribute ([#1630](https://github.com/googleapis/release-please/issues/1630)) ([1af59a1](https://github.com/googleapis/release-please/commit/1af59a162bc6b858c696a3cb4eee1ed9a47f4256))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* Allow parentheses in `pull-request-title-pattern` ([#1627](https://github.com/googleapis/release-please/issues/1627)) ([20f8684](https://github.com/googleapis/release-please/commit/20f8684740151ebcb7f902026c250a0e20515746))
|
|
18
|
+
|
|
7
19
|
## [14.3.1](https://github.com/googleapis/release-please/compare/v14.3.0...v14.3.1) (2022-09-06)
|
|
8
20
|
|
|
9
21
|
|
|
@@ -26,9 +26,14 @@ class ElixirMixExs extends default_1.DefaultUpdater {
|
|
|
26
26
|
* @returns {string} The updated content
|
|
27
27
|
*/
|
|
28
28
|
updateContent(content, logger = logger_1.logger) {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
logger.info(`updating from ${
|
|
29
|
+
const oldModuleAttributeVersion = content.match(/@version "([A-Za-z0-9_\-+.~]+)"/);
|
|
30
|
+
if (oldModuleAttributeVersion) {
|
|
31
|
+
logger.info(`updating module attribute version from ${oldModuleAttributeVersion[1]} to ${this.version}`);
|
|
32
|
+
return content.replace(/@version "[A-Za-z0-9_\-+.~]+"/, `@version "${this.version}"`);
|
|
33
|
+
}
|
|
34
|
+
const oldInlineVersion = content.match(/version: "([A-Za-z0-9_\-+.~]+)"/);
|
|
35
|
+
if (oldInlineVersion) {
|
|
36
|
+
logger.info(`updating inline version from ${oldInlineVersion[1]} to ${this.version}`);
|
|
32
37
|
}
|
|
33
38
|
return content.replace(/version: "[A-Za-z0-9_\-+.~]+",/, `version: "${this.version}",`);
|
|
34
39
|
}
|
|
@@ -33,6 +33,8 @@ function generateMatchPattern(pullRequestTitlePattern, logger = logger_1.logger)
|
|
|
33
33
|
return new RegExp(`^${(pullRequestTitlePattern || DEFAULT_PR_TITLE_PATTERN)
|
|
34
34
|
.replace('[', '\\[') // TODO: handle all regex escaping
|
|
35
35
|
.replace(']', '\\]')
|
|
36
|
+
.replace('(', '\\(')
|
|
37
|
+
.replace(')', '\\)')
|
|
36
38
|
.replace('${scope}', '(\\((?<branch>[\\w-./]+)\\))?')
|
|
37
39
|
.replace('${component}', ' ?(?<component>[\\w-./]*)?')
|
|
38
40
|
.replace('${version}', 'v?(?<version>[0-9].*)')
|