fix the GRM create field names
fix the GRM create field names
This commit is contained in:
@@ -64,7 +64,7 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"helpMarkDown": "The path to the file to be used as the content of the release notes"
|
"helpMarkDown": "The path to the file to be used as the content of the release notes"
|
||||||
}, {
|
}, {
|
||||||
"name": "pre",
|
"name": "isPreRelease",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"label": "Creates the release as a pre-release",
|
"label": "Creates the release as a pre-release",
|
||||||
"defaultValue": "false",
|
"defaultValue": "false",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ inputs:
|
|||||||
description: The path to the file to be used as the content of the release notes
|
description: The path to the file to be used as the content of the release notes
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
pre:
|
isPreRelease:
|
||||||
description: Creates the release as a pre-release
|
description: Creates the release as a pre-release
|
||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: 'false'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export enum CommonFields {
|
|||||||
|
|
||||||
export enum CreateFields {
|
export enum CreateFields {
|
||||||
milestone = "milestone",
|
milestone = "milestone",
|
||||||
releaseName = "releaseName",
|
name = "name",
|
||||||
inputFileName = "inputFileName",
|
inputFileName = "inputFileName",
|
||||||
isPreRelease = "isPreRelease",
|
isPreRelease = "isPreRelease",
|
||||||
commit = "commit",
|
commit = "commit",
|
||||||
@@ -44,7 +44,7 @@ export interface GitReleaseManagerSettings {
|
|||||||
|
|
||||||
export interface GitReleaseManagerCreateSettings extends GitReleaseManagerSettings {
|
export interface GitReleaseManagerCreateSettings extends GitReleaseManagerSettings {
|
||||||
[CreateFields.milestone]: string;
|
[CreateFields.milestone]: string;
|
||||||
[CreateFields.releaseName]: string;
|
[CreateFields.name]: string;
|
||||||
[CreateFields.inputFileName]: string;
|
[CreateFields.inputFileName]: string;
|
||||||
[CreateFields.isPreRelease]: boolean;
|
[CreateFields.isPreRelease]: boolean;
|
||||||
[CreateFields.commit]: string;
|
[CreateFields.commit]: string;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export class Settings {
|
|||||||
|
|
||||||
public static getCreateSettings(buildAgent: IBuildAgent): GitReleaseManagerCreateSettings {
|
public static getCreateSettings(buildAgent: IBuildAgent): GitReleaseManagerCreateSettings {
|
||||||
const milestone = buildAgent.getInput(CreateFields.milestone);
|
const milestone = buildAgent.getInput(CreateFields.milestone);
|
||||||
const releaseName = buildAgent.getInput(CreateFields.releaseName);
|
const name = buildAgent.getInput(CreateFields.name);
|
||||||
const inputFileName = buildAgent.getInput(CreateFields.inputFileName);
|
const inputFileName = buildAgent.getInput(CreateFields.inputFileName);
|
||||||
const isPreRelease = buildAgent.getBooleanInput(CreateFields.isPreRelease);
|
const isPreRelease = buildAgent.getBooleanInput(CreateFields.isPreRelease);
|
||||||
const commit = buildAgent.getInput(CreateFields.commit);
|
const commit = buildAgent.getInput(CreateFields.commit);
|
||||||
@@ -27,7 +27,7 @@ export class Settings {
|
|||||||
return {
|
return {
|
||||||
...commonSettings,
|
...commonSettings,
|
||||||
milestone,
|
milestone,
|
||||||
releaseName,
|
name,
|
||||||
inputFileName,
|
inputFileName,
|
||||||
isPreRelease,
|
isPreRelease,
|
||||||
commit,
|
commit,
|
||||||
|
|||||||
@@ -95,8 +95,8 @@ export class GitReleaseManagerTool extends DotnetTool implements IGitReleaseMana
|
|||||||
if (settings.milestone) {
|
if (settings.milestone) {
|
||||||
args.push("--milestone", settings.milestone);
|
args.push("--milestone", settings.milestone);
|
||||||
}
|
}
|
||||||
if (settings.releaseName) {
|
if (settings.name) {
|
||||||
args.push("--name", settings.releaseName);
|
args.push("--name", settings.name);
|
||||||
}
|
}
|
||||||
if (settings.commit) {
|
if (settings.commit) {
|
||||||
args.push("--targetcommitish", settings.commit);
|
args.push("--targetcommitish", settings.commit);
|
||||||
|
|||||||
Reference in New Issue
Block a user