@atomist/automation-client
Version:
Atomist API for software low-level client
32 lines (25 loc) • 775 B
text/typescript
import {
MappedParameter,
MappedParameters,
Parameter,
Parameters,
} from "../../../decorators";
import { GitHubTargetsParams } from "./GitHubTargetsParams";
import {
GitBranchRegExp,
GitShaRegExp,
} from "./validationPatterns";
/**
* Get target from channel mapping
*/
()
export class MappedRepoParameters extends GitHubTargetsParams {
(MappedParameters.GitHubOwner)
public owner: string;
(MappedParameters.GitHubRepository)
public repo: string;
({ description: "Ref", ...GitShaRegExp, required: false })
public sha: string;
({ description: "Branch Defaults to 'master'", ...GitBranchRegExp, required: false })
public branch: string = "master";
}