moved the gitversion settings to a file
This commit is contained in:
@@ -2,11 +2,11 @@ import path = require("path");
|
||||
|
||||
import { TYPES, IBuildAgent, IExecResult } from "../../core/common";
|
||||
import { injectable, inject } from "inversify";
|
||||
import { DotnetTool } from "../../core/dotnet-tool";
|
||||
import { DotnetTool, IDotnetTool } from "../../core/dotnet-tool";
|
||||
import { GitReleaseManagerCreateSettings, GitReleaseManagerSettings, CreateFields, CommonFields } from "./models";
|
||||
import { IVersionManager } from "../../core/versionManager";
|
||||
|
||||
export interface IGitReleaseManagerTool {
|
||||
export interface IGitReleaseManagerTool extends IDotnetTool {
|
||||
install(versionSpec: string, includePrerelease: boolean): Promise<void>;
|
||||
create(settings: GitReleaseManagerCreateSettings): Promise<IExecResult>;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import { IBuildAgent } from "../../core/common";
|
||||
import { GitReleaseManagerSettings, CommonFields, CreateFields } from "./models";
|
||||
|
||||
export class Settings {
|
||||
|
||||
public static getCreateSettings(buildAgent: IBuildAgent) {
|
||||
const milestone = buildAgent.getInput(CreateFields.milestone);
|
||||
const releaseName = buildAgent.getInput(CreateFields.releaseName);
|
||||
|
||||
Reference in New Issue
Block a user