release-please
Advanced tools
Comparing version 12.1.0 to 12.2.0
@@ -72,2 +72,6 @@ #!/usr/bin/env node | ||
}); | ||
ya.option('signoff', { | ||
describe: 'Add Signed-off-by line at the end of the commit log message using the user and email provided. (format "Name <email@example.com>").', | ||
type: 'string', | ||
}); | ||
ya.option('changelog-path', { | ||
@@ -74,0 +78,0 @@ default: 'CHANGELOG.md', |
@@ -42,2 +42,3 @@ import { Changes } from 'code-suggester'; | ||
body: string; | ||
message: string; | ||
updates: Update[]; | ||
@@ -44,0 +45,0 @@ labels: string[]; |
@@ -294,3 +294,3 @@ "use strict"; | ||
fork: this.fork, | ||
message: options.title, | ||
message: options.message, | ||
logger: logger_1.logger, | ||
@@ -297,0 +297,0 @@ }); |
@@ -33,2 +33,3 @@ import { OctokitAPIs, GitHub } from './github'; | ||
pullRequestTitlePattern?: string; | ||
signoff?: string; | ||
extraFiles?: string[]; | ||
@@ -46,2 +47,3 @@ } | ||
manifestFile?: string; | ||
signoff?: string; | ||
} | ||
@@ -48,0 +50,0 @@ export interface ManifestConstructorOptions extends ReleaserConstructorOptions, ManifestOptions { |
@@ -45,2 +45,3 @@ import { GitHub } from './github'; | ||
headManifest?: ManifestJson; | ||
signoff?: string; | ||
constructor(options: ManifestConstructorOptions); | ||
@@ -47,0 +48,0 @@ protected getBranchName(): Promise<BranchName>; |
@@ -25,2 +25,3 @@ "use strict"; | ||
const plugins_1 = require("./plugins"); | ||
const signoff_commit_message_1 = require("./util/signoff-commit-message"); | ||
class Manifest { | ||
@@ -32,2 +33,3 @@ constructor(options) { | ||
this.checkpoint = options.checkpoint || checkpoint_1.checkpoint; | ||
this.signoff = options.signoff; | ||
} | ||
@@ -425,5 +427,11 @@ async getBranchName() { | ||
const [body, changes] = await this.buildManifestPR(newManifestVersions, pkgsWithChanges); | ||
const title = `chore: release ${await this.gh.getDefaultBranch()}`; | ||
// Sign-off message if signoff option is enabled | ||
const message = this.signoff | ||
? signoff_commit_message_1.signoffCommitMessage(title, this.signoff) | ||
: title; | ||
const pr = await this.gh.openPR({ | ||
branch: branchName, | ||
title: `chore: release ${await this.gh.getDefaultBranch()}`, | ||
title, | ||
message, | ||
body: body, | ||
@@ -430,0 +438,0 @@ updates: [], |
@@ -53,2 +53,3 @@ import { ReleasePRConstructorOptions } from './'; | ||
enableSimplePrereleaseParsing: boolean; | ||
signoff?: string; | ||
constructor(options: ReleasePRConstructorOptions); | ||
@@ -55,0 +56,0 @@ getPackageName(): Promise<PackageName>; |
@@ -25,2 +25,3 @@ "use strict"; | ||
const logger_1 = require("./util/logger"); | ||
const signoff_commit_message_1 = require("./util/signoff-commit-message"); | ||
class ReleasePR { | ||
@@ -49,2 +50,3 @@ constructor(options) { | ||
this.pullRequestTitlePattern = options.pullRequestTitlePattern; | ||
this.signoff = options.signoff; | ||
this.extraFiles = (_c = options.extraFiles) !== null && _c !== void 0 ? _c : []; | ||
@@ -267,2 +269,6 @@ this.forManifestReleaser = (_d = options.skipDependencyUpdates) !== null && _d !== void 0 ? _d : false; | ||
const body = await this.buildPullRequestBody(version, changelogEntry); | ||
// Sign-off message if signoff option is enabled | ||
const message = this.signoff | ||
? signoff_commit_message_1.signoffCommitMessage(title, this.signoff) | ||
: title; | ||
const branchName = await this.buildBranchName(version, includePackageName); | ||
@@ -273,2 +279,3 @@ const pr = await this.gh.openPR({ | ||
title, | ||
message, | ||
body, | ||
@@ -275,0 +282,0 @@ labels: this.labels, |
{ | ||
"name": "release-please", | ||
"version": "12.1.0", | ||
"version": "12.2.0", | ||
"description": "generate release PRs based on the conventionalcommits.org spec", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
@@ -219,2 +219,3 @@ <img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> | ||
| `--pull-request-title-pattern` | add title pattern to make release PR, defaults to using `chore${scope}: release${component} ${version}`. | | ||
| `--signoff` | Add [`Signed-off-by`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff) line at the end of the commit log message using the user and email provided. (format "Name \<email@example.com\>") | | ||
@@ -221,0 +222,0 @@ ### Creating a release on GitHub |
Sorry, the diff of this file is too big to display
554022
174
10673
282