1 | "use strict";
|
2 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7 | };
|
8 | var __metadata = (this && this.__metadata) || function (k, v) {
|
9 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10 | };
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | const decorators_1 = require("../../decorators");
|
13 | const GitHubSourceRepoParameters_1 = require("../common/params/GitHubSourceRepoParameters");
|
14 | const SourceRepoParameters_1 = require("../common/params/SourceRepoParameters");
|
15 | const GitHubRepoCreationParameters_1 = require("./GitHubRepoCreationParameters");
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | let BaseSeedDrivenGeneratorParameters = class BaseSeedDrivenGeneratorParameters {
|
21 | |
22 |
|
23 |
|
24 |
|
25 |
|
26 | constructor(source = new GitHubSourceRepoParameters_1.GitHubSourceRepoParameters(), target = new GitHubRepoCreationParameters_1.GitHubRepoCreationParameters()) {
|
27 | this.source = source;
|
28 | this.target = target;
|
29 | this.addAtomistWebhook = false;
|
30 | }
|
31 | };
|
32 | __decorate([
|
33 | decorators_1.Parameter({
|
34 | pattern: /^(?:true|false)$/,
|
35 | type: "boolean",
|
36 | displayName: "Add Atomist webhook",
|
37 | description: "whether to add the Atomist webhook to the repository to allow updates",
|
38 | validInput: "'true' or 'false'",
|
39 | required: false,
|
40 | displayable: true,
|
41 | }),
|
42 | __metadata("design:type", Boolean)
|
43 | ], BaseSeedDrivenGeneratorParameters.prototype, "addAtomistWebhook", void 0);
|
44 | BaseSeedDrivenGeneratorParameters = __decorate([
|
45 | decorators_1.Parameters(),
|
46 | __metadata("design:paramtypes", [SourceRepoParameters_1.SourceRepoParameters, Object])
|
47 | ], BaseSeedDrivenGeneratorParameters);
|
48 | exports.BaseSeedDrivenGeneratorParameters = BaseSeedDrivenGeneratorParameters;
|
49 |
|
\ | No newline at end of file |