release-please
Advanced tools
Comparing version 13.4.0 to 13.4.1
@@ -1,5 +0,6 @@ | ||
import { BaseStrategy, BuildUpdatesOptions } from './base'; | ||
import { BaseStrategy, BuildUpdatesOptions, BaseStrategyOptions } from './base'; | ||
import { Update } from '../update'; | ||
import { Version } from '../version'; | ||
export declare class Python extends BaseStrategy { | ||
constructor(options: BaseStrategyOptions); | ||
protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>; | ||
@@ -6,0 +7,0 @@ private getPyProject; |
@@ -25,3 +25,22 @@ "use strict"; | ||
const python_file_with_version_1 = require("../updaters/python/python-file-with-version"); | ||
const CHANGELOG_SECTIONS = [ | ||
{ type: 'feat', section: 'Features' }, | ||
{ type: 'fix', section: 'Bug Fixes' }, | ||
{ type: 'perf', section: 'Performance Improvements' }, | ||
{ type: 'deps', section: 'Dependencies' }, | ||
{ type: 'revert', section: 'Reverts' }, | ||
{ type: 'docs', section: 'Documentation' }, | ||
{ type: 'style', section: 'Styles', hidden: true }, | ||
{ type: 'chore', section: 'Miscellaneous Chores', hidden: true }, | ||
{ type: 'refactor', section: 'Code Refactoring', hidden: true }, | ||
{ type: 'test', section: 'Tests', hidden: true }, | ||
{ type: 'build', section: 'Build System', hidden: true }, | ||
{ type: 'ci', section: 'Continuous Integration', hidden: true }, | ||
]; | ||
class Python extends base_1.BaseStrategy { | ||
constructor(options) { | ||
var _a; | ||
options.changelogSections = (_a = options.changelogSections) !== null && _a !== void 0 ? _a : CHANGELOG_SECTIONS; | ||
super(options); | ||
} | ||
async buildUpdates(options) { | ||
@@ -28,0 +47,0 @@ var _a; |
@@ -28,3 +28,3 @@ "use strict"; | ||
updateContent(content) { | ||
return content.replace(/(version ?= ?["'])[0-9]+\.[0-9]+\.[0-9](?:-\w+)?(["'])/, `$1${this.version}$2`); | ||
return content.replace(/(version ?= ?["'])[0-9]+\.[0-9]+\.[0-9]+(?:-\w+)?(["'])/, `$1${this.version}$2`); | ||
} | ||
@@ -31,0 +31,0 @@ } |
@@ -73,3 +73,3 @@ "use strict"; | ||
function splitBody(body) { | ||
const lines = body.trim().split('\n'); | ||
const lines = body.trim().replace(/\r\n/g, '\n').split('\n'); | ||
const index = lines.indexOf(NOTES_DELIMITER); | ||
@@ -76,0 +76,0 @@ if (index === -1) { |
{ | ||
"name": "release-please", | ||
"version": "13.4.0", | ||
"version": "13.4.1", | ||
"description": "generate release PRs based on the conventionalcommits.org spec", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
Sorry, the diff of this file is too big to display
590935
11302