@backstage/plugin-scaffolder-backend-module-bitbucket-server 0.2.1-next.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/actions/bitbucketServer.cjs.js +228 -0
- package/dist/actions/bitbucketServer.cjs.js.map +1 -0
- package/dist/actions/bitbucketServer.examples.cjs.js +317 -0
- package/dist/actions/bitbucketServer.examples.cjs.js.map +1 -0
- package/dist/actions/bitbucketServerPullRequest.cjs.js +367 -0
- package/dist/actions/bitbucketServerPullRequest.cjs.js.map +1 -0
- package/dist/actions/bitbucketServerPullRequest.examples.cjs.js +107 -0
- package/dist/actions/bitbucketServerPullRequest.examples.cjs.js.map +1 -0
- package/dist/index.cjs.js +6 -994
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/module.cjs.js +33 -0
- package/dist/module.cjs.js.map +1 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-backend-module-bitbucket-server
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- db54c57: Add `reviewers` input parameter to `publish:bitbucketServer:pull-request`
|
|
8
|
+
- 66a6b45: Use protocol from Bitbucket Server apiBaseUrl config parameter instead of hard-coded https
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/plugin-scaffolder-node@0.5.0
|
|
11
|
+
- @backstage/integration@1.15.1
|
|
12
|
+
- @backstage/backend-plugin-api@1.0.1
|
|
13
|
+
- @backstage/config@1.2.0
|
|
14
|
+
- @backstage/errors@1.2.4
|
|
15
|
+
|
|
16
|
+
## 0.2.1-next.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- db54c57: Add `reviewers` input parameter to `publish:bitbucketServer:pull-request`
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @backstage/integration@1.15.1-next.1
|
|
23
|
+
- @backstage/plugin-scaffolder-node@0.5.0-next.2
|
|
24
|
+
- @backstage/backend-plugin-api@1.0.1-next.1
|
|
25
|
+
- @backstage/config@1.2.0
|
|
26
|
+
- @backstage/errors@1.2.4
|
|
27
|
+
|
|
3
28
|
## 0.2.1-next.1
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var errors = require('@backstage/errors');
|
|
4
|
+
var integration = require('@backstage/integration');
|
|
5
|
+
var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
|
|
6
|
+
var fetch = require('node-fetch');
|
|
7
|
+
var bitbucketServer_examples = require('./bitbucketServer.examples.cjs.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var fetch__default = /*#__PURE__*/_interopDefaultCompat(fetch);
|
|
12
|
+
|
|
13
|
+
const createRepository = async (opts) => {
|
|
14
|
+
const {
|
|
15
|
+
project,
|
|
16
|
+
repo,
|
|
17
|
+
description,
|
|
18
|
+
authorization,
|
|
19
|
+
repoVisibility,
|
|
20
|
+
defaultBranch,
|
|
21
|
+
apiBaseUrl
|
|
22
|
+
} = opts;
|
|
23
|
+
let response;
|
|
24
|
+
const options = {
|
|
25
|
+
method: "POST",
|
|
26
|
+
body: JSON.stringify({
|
|
27
|
+
name: repo,
|
|
28
|
+
description,
|
|
29
|
+
defaultBranch,
|
|
30
|
+
public: repoVisibility === "public"
|
|
31
|
+
}),
|
|
32
|
+
headers: {
|
|
33
|
+
Authorization: authorization,
|
|
34
|
+
"Content-Type": "application/json"
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
try {
|
|
38
|
+
response = await fetch__default.default(`${apiBaseUrl}/projects/${project}/repos`, options);
|
|
39
|
+
} catch (e) {
|
|
40
|
+
throw new Error(`Unable to create repository, ${e}`);
|
|
41
|
+
}
|
|
42
|
+
if (response.status !== 201) {
|
|
43
|
+
throw new Error(
|
|
44
|
+
`Unable to create repository, ${response.status} ${response.statusText}, ${await response.text()}`
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
const r = await response.json();
|
|
48
|
+
let remoteUrl = "";
|
|
49
|
+
for (const link of r.links.clone) {
|
|
50
|
+
if (link.name === "http") {
|
|
51
|
+
remoteUrl = link.href;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const repoContentsUrl = `${r.links.self[0].href}`;
|
|
55
|
+
return { remoteUrl, repoContentsUrl };
|
|
56
|
+
};
|
|
57
|
+
const performEnableLFS = async (opts) => {
|
|
58
|
+
const { authorization, host, project, repo } = opts;
|
|
59
|
+
const options = {
|
|
60
|
+
method: "PUT",
|
|
61
|
+
headers: {
|
|
62
|
+
Authorization: authorization
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const { ok, status, statusText } = await fetch__default.default(
|
|
66
|
+
`https://${host}/rest/git-lfs/admin/projects/${project}/repos/${repo}/enabled`,
|
|
67
|
+
options
|
|
68
|
+
);
|
|
69
|
+
if (!ok)
|
|
70
|
+
throw new Error(
|
|
71
|
+
`Failed to enable LFS in the repository, ${status}: ${statusText}`
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
function createPublishBitbucketServerAction(options) {
|
|
75
|
+
const { integrations, config } = options;
|
|
76
|
+
return pluginScaffolderNode.createTemplateAction({
|
|
77
|
+
id: "publish:bitbucketServer",
|
|
78
|
+
description: "Initializes a git repository of the content in the workspace, and publishes it to Bitbucket Server.",
|
|
79
|
+
examples: bitbucketServer_examples.examples,
|
|
80
|
+
schema: {
|
|
81
|
+
input: {
|
|
82
|
+
type: "object",
|
|
83
|
+
required: ["repoUrl"],
|
|
84
|
+
properties: {
|
|
85
|
+
repoUrl: {
|
|
86
|
+
title: "Repository Location",
|
|
87
|
+
type: "string"
|
|
88
|
+
},
|
|
89
|
+
description: {
|
|
90
|
+
title: "Repository Description",
|
|
91
|
+
type: "string"
|
|
92
|
+
},
|
|
93
|
+
repoVisibility: {
|
|
94
|
+
title: "Repository Visibility",
|
|
95
|
+
type: "string",
|
|
96
|
+
enum: ["private", "public"]
|
|
97
|
+
},
|
|
98
|
+
defaultBranch: {
|
|
99
|
+
title: "Default Branch",
|
|
100
|
+
type: "string",
|
|
101
|
+
description: `Sets the default branch on the repository. The default value is 'master'`
|
|
102
|
+
},
|
|
103
|
+
sourcePath: {
|
|
104
|
+
title: "Source Path",
|
|
105
|
+
description: "Path within the workspace that will be used as the repository root. If omitted, the entire workspace will be published as the repository.",
|
|
106
|
+
type: "string"
|
|
107
|
+
},
|
|
108
|
+
enableLFS: {
|
|
109
|
+
title: "Enable LFS?",
|
|
110
|
+
description: "Enable LFS for the repository.",
|
|
111
|
+
type: "boolean"
|
|
112
|
+
},
|
|
113
|
+
token: {
|
|
114
|
+
title: "Authentication Token",
|
|
115
|
+
type: "string",
|
|
116
|
+
description: "The token to use for authorization to BitBucket Server"
|
|
117
|
+
},
|
|
118
|
+
gitCommitMessage: {
|
|
119
|
+
title: "Git Commit Message",
|
|
120
|
+
type: "string",
|
|
121
|
+
description: `Sets the commit message on the repository. The default value is 'initial commit'`
|
|
122
|
+
},
|
|
123
|
+
gitAuthorName: {
|
|
124
|
+
title: "Author Name",
|
|
125
|
+
type: "string",
|
|
126
|
+
description: `Sets the author name for the commit. The default value is 'Scaffolder'`
|
|
127
|
+
},
|
|
128
|
+
gitAuthorEmail: {
|
|
129
|
+
title: "Author Email",
|
|
130
|
+
type: "string",
|
|
131
|
+
description: `Sets the author email for the commit.`
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
output: {
|
|
136
|
+
type: "object",
|
|
137
|
+
properties: {
|
|
138
|
+
remoteUrl: {
|
|
139
|
+
title: "A URL to the repository with the provider",
|
|
140
|
+
type: "string"
|
|
141
|
+
},
|
|
142
|
+
repoContentsUrl: {
|
|
143
|
+
title: "A URL to the root of the repository",
|
|
144
|
+
type: "string"
|
|
145
|
+
},
|
|
146
|
+
commitHash: {
|
|
147
|
+
title: "The git commit hash of the initial commit",
|
|
148
|
+
type: "string"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
async handler(ctx) {
|
|
154
|
+
const {
|
|
155
|
+
repoUrl,
|
|
156
|
+
description,
|
|
157
|
+
defaultBranch = "master",
|
|
158
|
+
repoVisibility = "private",
|
|
159
|
+
enableLFS = false,
|
|
160
|
+
gitCommitMessage = "initial commit",
|
|
161
|
+
gitAuthorName,
|
|
162
|
+
gitAuthorEmail
|
|
163
|
+
} = ctx.input;
|
|
164
|
+
const { project, repo, host } = pluginScaffolderNode.parseRepoUrl(repoUrl, integrations);
|
|
165
|
+
if (!project) {
|
|
166
|
+
throw new errors.InputError(
|
|
167
|
+
`Invalid URL provider was included in the repo URL to create ${ctx.input.repoUrl}, missing project`
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
const integrationConfig = integrations.bitbucketServer.byHost(host);
|
|
171
|
+
if (!integrationConfig) {
|
|
172
|
+
throw new errors.InputError(
|
|
173
|
+
`No matching integration configuration for host ${host}, please check your integrations config`
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
const token = ctx.input.token ?? integrationConfig.config.token;
|
|
177
|
+
const authConfig = {
|
|
178
|
+
...integrationConfig.config,
|
|
179
|
+
...{ token }
|
|
180
|
+
};
|
|
181
|
+
const reqOpts = integration.getBitbucketServerRequestOptions(authConfig);
|
|
182
|
+
const authorization = reqOpts.headers.Authorization;
|
|
183
|
+
if (!authorization) {
|
|
184
|
+
throw new Error(
|
|
185
|
+
`Authorization has not been provided for ${integrationConfig.config.host}. Please add either (a) a user login auth token, or (b) a token or (c) username + password to the integration config.`
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
const apiBaseUrl = integrationConfig.config.apiBaseUrl;
|
|
189
|
+
const { remoteUrl, repoContentsUrl } = await createRepository({
|
|
190
|
+
authorization,
|
|
191
|
+
project,
|
|
192
|
+
repo,
|
|
193
|
+
repoVisibility,
|
|
194
|
+
defaultBranch,
|
|
195
|
+
description,
|
|
196
|
+
apiBaseUrl
|
|
197
|
+
});
|
|
198
|
+
const gitAuthorInfo = {
|
|
199
|
+
name: gitAuthorName ? gitAuthorName : config.getOptionalString("scaffolder.defaultAuthor.name"),
|
|
200
|
+
email: gitAuthorEmail ? gitAuthorEmail : config.getOptionalString("scaffolder.defaultAuthor.email")
|
|
201
|
+
};
|
|
202
|
+
const auth = authConfig.token ? {
|
|
203
|
+
token
|
|
204
|
+
} : {
|
|
205
|
+
username: authConfig.username,
|
|
206
|
+
password: authConfig.password
|
|
207
|
+
};
|
|
208
|
+
const commitResult = await pluginScaffolderNode.initRepoAndPush({
|
|
209
|
+
dir: pluginScaffolderNode.getRepoSourceDirectory(ctx.workspacePath, ctx.input.sourcePath),
|
|
210
|
+
remoteUrl,
|
|
211
|
+
auth,
|
|
212
|
+
defaultBranch,
|
|
213
|
+
logger: ctx.logger,
|
|
214
|
+
commitMessage: gitCommitMessage ? gitCommitMessage : config.getOptionalString("scaffolder.defaultCommitMessage"),
|
|
215
|
+
gitAuthorInfo
|
|
216
|
+
});
|
|
217
|
+
if (enableLFS) {
|
|
218
|
+
await performEnableLFS({ authorization, host, project, repo });
|
|
219
|
+
}
|
|
220
|
+
ctx.output("commitHash", commitResult?.commitHash);
|
|
221
|
+
ctx.output("remoteUrl", remoteUrl);
|
|
222
|
+
ctx.output("repoContentsUrl", repoContentsUrl);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
exports.createPublishBitbucketServerAction = createPublishBitbucketServerAction;
|
|
228
|
+
//# sourceMappingURL=bitbucketServer.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bitbucketServer.cjs.js","sources":["../../src/actions/bitbucketServer.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InputError } from '@backstage/errors';\nimport {\n getBitbucketServerRequestOptions,\n ScmIntegrationRegistry,\n} from '@backstage/integration';\nimport {\n createTemplateAction,\n initRepoAndPush,\n getRepoSourceDirectory,\n parseRepoUrl,\n} from '@backstage/plugin-scaffolder-node';\nimport fetch, { Response, RequestInit } from 'node-fetch';\n\nimport { Config } from '@backstage/config';\nimport { examples } from './bitbucketServer.examples';\n\nconst createRepository = async (opts: {\n project: string;\n repo: string;\n description?: string;\n repoVisibility: 'private' | 'public';\n defaultBranch: string;\n authorization: string;\n apiBaseUrl: string;\n}) => {\n const {\n project,\n repo,\n description,\n authorization,\n repoVisibility,\n defaultBranch,\n apiBaseUrl,\n } = opts;\n\n let response: Response;\n const options: RequestInit = {\n method: 'POST',\n body: JSON.stringify({\n name: repo,\n description: description,\n defaultBranch: defaultBranch,\n public: repoVisibility === 'public',\n }),\n headers: {\n Authorization: authorization,\n 'Content-Type': 'application/json',\n },\n };\n\n try {\n response = await fetch(`${apiBaseUrl}/projects/${project}/repos`, options);\n } catch (e) {\n throw new Error(`Unable to create repository, ${e}`);\n }\n\n if (response.status !== 201) {\n throw new Error(\n `Unable to create repository, ${response.status} ${\n response.statusText\n }, ${await response.text()}`,\n );\n }\n\n const r = await response.json();\n let remoteUrl = '';\n for (const link of r.links.clone) {\n if (link.name === 'http') {\n remoteUrl = link.href;\n }\n }\n\n const repoContentsUrl = `${r.links.self[0].href}`;\n return { remoteUrl, repoContentsUrl };\n};\n\nconst performEnableLFS = async (opts: {\n authorization: string;\n host: string;\n project: string;\n repo: string;\n}) => {\n const { authorization, host, project, repo } = opts;\n\n const options: RequestInit = {\n method: 'PUT',\n headers: {\n Authorization: authorization,\n },\n };\n\n const { ok, status, statusText } = await fetch(\n `https://${host}/rest/git-lfs/admin/projects/${project}/repos/${repo}/enabled`,\n options,\n );\n\n if (!ok)\n throw new Error(\n `Failed to enable LFS in the repository, ${status}: ${statusText}`,\n );\n};\n\n/**\n * Creates a new action that initializes a git repository of the content in the workspace\n * and publishes it to Bitbucket Server.\n * @public\n */\nexport function createPublishBitbucketServerAction(options: {\n integrations: ScmIntegrationRegistry;\n config: Config;\n}) {\n const { integrations, config } = options;\n\n return createTemplateAction<{\n repoUrl: string;\n description?: string;\n defaultBranch?: string;\n repoVisibility?: 'private' | 'public';\n sourcePath?: string;\n enableLFS?: boolean;\n token?: string;\n gitCommitMessage?: string;\n gitAuthorName?: string;\n gitAuthorEmail?: string;\n }>({\n id: 'publish:bitbucketServer',\n description:\n 'Initializes a git repository of the content in the workspace, and publishes it to Bitbucket Server.',\n examples,\n schema: {\n input: {\n type: 'object',\n required: ['repoUrl'],\n properties: {\n repoUrl: {\n title: 'Repository Location',\n type: 'string',\n },\n description: {\n title: 'Repository Description',\n type: 'string',\n },\n repoVisibility: {\n title: 'Repository Visibility',\n type: 'string',\n enum: ['private', 'public'],\n },\n defaultBranch: {\n title: 'Default Branch',\n type: 'string',\n description: `Sets the default branch on the repository. The default value is 'master'`,\n },\n sourcePath: {\n title: 'Source Path',\n description:\n 'Path within the workspace that will be used as the repository root. If omitted, the entire workspace will be published as the repository.',\n type: 'string',\n },\n enableLFS: {\n title: 'Enable LFS?',\n description: 'Enable LFS for the repository.',\n type: 'boolean',\n },\n token: {\n title: 'Authentication Token',\n type: 'string',\n description:\n 'The token to use for authorization to BitBucket Server',\n },\n gitCommitMessage: {\n title: 'Git Commit Message',\n type: 'string',\n description: `Sets the commit message on the repository. The default value is 'initial commit'`,\n },\n gitAuthorName: {\n title: 'Author Name',\n type: 'string',\n description: `Sets the author name for the commit. The default value is 'Scaffolder'`,\n },\n gitAuthorEmail: {\n title: 'Author Email',\n type: 'string',\n description: `Sets the author email for the commit.`,\n },\n },\n },\n output: {\n type: 'object',\n properties: {\n remoteUrl: {\n title: 'A URL to the repository with the provider',\n type: 'string',\n },\n repoContentsUrl: {\n title: 'A URL to the root of the repository',\n type: 'string',\n },\n commitHash: {\n title: 'The git commit hash of the initial commit',\n type: 'string',\n },\n },\n },\n },\n async handler(ctx) {\n const {\n repoUrl,\n description,\n defaultBranch = 'master',\n repoVisibility = 'private',\n enableLFS = false,\n gitCommitMessage = 'initial commit',\n gitAuthorName,\n gitAuthorEmail,\n } = ctx.input;\n\n const { project, repo, host } = parseRepoUrl(repoUrl, integrations);\n\n if (!project) {\n throw new InputError(\n `Invalid URL provider was included in the repo URL to create ${ctx.input.repoUrl}, missing project`,\n );\n }\n\n const integrationConfig = integrations.bitbucketServer.byHost(host);\n if (!integrationConfig) {\n throw new InputError(\n `No matching integration configuration for host ${host}, please check your integrations config`,\n );\n }\n\n const token = ctx.input.token ?? integrationConfig.config.token;\n\n const authConfig = {\n ...integrationConfig.config,\n ...{ token },\n };\n const reqOpts = getBitbucketServerRequestOptions(authConfig);\n const authorization = reqOpts.headers.Authorization;\n if (!authorization) {\n throw new Error(\n `Authorization has not been provided for ${integrationConfig.config.host}. Please add either (a) a user login auth token, or (b) a token or (c) username + password to the integration config.`,\n );\n }\n\n const apiBaseUrl = integrationConfig.config.apiBaseUrl;\n\n const { remoteUrl, repoContentsUrl } = await createRepository({\n authorization,\n project,\n repo,\n repoVisibility,\n defaultBranch,\n description,\n apiBaseUrl,\n });\n\n const gitAuthorInfo = {\n name: gitAuthorName\n ? gitAuthorName\n : config.getOptionalString('scaffolder.defaultAuthor.name'),\n email: gitAuthorEmail\n ? gitAuthorEmail\n : config.getOptionalString('scaffolder.defaultAuthor.email'),\n };\n\n const auth = authConfig.token\n ? {\n token: token!,\n }\n : {\n username: authConfig.username!,\n password: authConfig.password!,\n };\n\n const commitResult = await initRepoAndPush({\n dir: getRepoSourceDirectory(ctx.workspacePath, ctx.input.sourcePath),\n remoteUrl,\n auth,\n defaultBranch,\n logger: ctx.logger,\n commitMessage: gitCommitMessage\n ? gitCommitMessage\n : config.getOptionalString('scaffolder.defaultCommitMessage'),\n gitAuthorInfo,\n });\n\n if (enableLFS) {\n await performEnableLFS({ authorization, host, project, repo });\n }\n\n ctx.output('commitHash', commitResult?.commitHash);\n ctx.output('remoteUrl', remoteUrl);\n ctx.output('repoContentsUrl', repoContentsUrl);\n },\n });\n}\n"],"names":["fetch","createTemplateAction","examples","parseRepoUrl","InputError","getBitbucketServerRequestOptions","initRepoAndPush","getRepoSourceDirectory"],"mappings":";;;;;;;;;;;;AAgCA,MAAM,gBAAA,GAAmB,OAAO,IAQ1B,KAAA;AACJ,EAAM,MAAA;AAAA,IACJ,OAAA;AAAA,IACA,IAAA;AAAA,IACA,WAAA;AAAA,IACA,aAAA;AAAA,IACA,cAAA;AAAA,IACA,aAAA;AAAA,IACA,UAAA;AAAA,GACE,GAAA,IAAA,CAAA;AAEJ,EAAI,IAAA,QAAA,CAAA;AACJ,EAAA,MAAM,OAAuB,GAAA;AAAA,IAC3B,MAAQ,EAAA,MAAA;AAAA,IACR,IAAA,EAAM,KAAK,SAAU,CAAA;AAAA,MACnB,IAAM,EAAA,IAAA;AAAA,MACN,WAAA;AAAA,MACA,aAAA;AAAA,MACA,QAAQ,cAAmB,KAAA,QAAA;AAAA,KAC5B,CAAA;AAAA,IACD,OAAS,EAAA;AAAA,MACP,aAAe,EAAA,aAAA;AAAA,MACf,cAAgB,EAAA,kBAAA;AAAA,KAClB;AAAA,GACF,CAAA;AAEA,EAAI,IAAA;AACF,IAAA,QAAA,GAAW,MAAMA,sBAAM,CAAA,CAAA,EAAG,UAAU,CAAa,UAAA,EAAA,OAAO,UAAU,OAAO,CAAA,CAA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AAA,CAAA;AAAA,KAC/C;AAAA,GACD,CAAA,CAAA;AACH;;;;"}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var yaml = require('yaml');
|
|
4
|
+
|
|
5
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var yaml__default = /*#__PURE__*/_interopDefaultCompat(yaml);
|
|
8
|
+
|
|
9
|
+
const examples = [
|
|
10
|
+
{
|
|
11
|
+
description: "Initialize git repository with required properties",
|
|
12
|
+
example: yaml__default.default.stringify({
|
|
13
|
+
steps: [
|
|
14
|
+
{
|
|
15
|
+
action: "publish:bitbucketServer",
|
|
16
|
+
id: "publish-bitbucket-server-minimal",
|
|
17
|
+
name: "Publish To Bitbucket Server",
|
|
18
|
+
input: {
|
|
19
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
})
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
description: "Initialize git repository with all properties",
|
|
27
|
+
example: yaml__default.default.stringify({
|
|
28
|
+
steps: [
|
|
29
|
+
{
|
|
30
|
+
action: "publish:bitbucketServer",
|
|
31
|
+
id: "publish-bitbucket-server-minimal",
|
|
32
|
+
name: "Publish To Bitbucket Server",
|
|
33
|
+
input: {
|
|
34
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
35
|
+
description: "This is a test repository",
|
|
36
|
+
repoVisibility: "private",
|
|
37
|
+
defaultBranch: "main",
|
|
38
|
+
sourcePath: "packages/backend",
|
|
39
|
+
enableLFS: false,
|
|
40
|
+
token: "test-token",
|
|
41
|
+
gitCommitMessage: "Init check commit",
|
|
42
|
+
gitAuthorName: "Test User",
|
|
43
|
+
gitAuthorEmail: "test.user@example.com"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "Initialize git repository with public visibility",
|
|
51
|
+
example: yaml__default.default.stringify({
|
|
52
|
+
steps: [
|
|
53
|
+
{
|
|
54
|
+
action: "publish:bitbucketServer",
|
|
55
|
+
id: "publish-bitbucket-server-minimal",
|
|
56
|
+
name: "Publish To Bitbucket Server",
|
|
57
|
+
input: {
|
|
58
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
59
|
+
description: "This is a test repository",
|
|
60
|
+
repoVisibility: "public",
|
|
61
|
+
defaultBranch: "main",
|
|
62
|
+
sourcePath: "packages/backend",
|
|
63
|
+
enableLFS: true,
|
|
64
|
+
token: "test-token",
|
|
65
|
+
gitCommitMessage: "Init check commit",
|
|
66
|
+
gitAuthorName: "Test User",
|
|
67
|
+
gitAuthorEmail: "test.user@example.com"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
description: "Initialize git repository with different default branch",
|
|
75
|
+
example: yaml__default.default.stringify({
|
|
76
|
+
steps: [
|
|
77
|
+
{
|
|
78
|
+
action: "publish:bitbucketServer",
|
|
79
|
+
id: "publish-bitbucket-server-minimal",
|
|
80
|
+
name: "Publish To Bitbucket Server",
|
|
81
|
+
input: {
|
|
82
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
83
|
+
description: "This is a test repository",
|
|
84
|
+
repoVisibility: "public",
|
|
85
|
+
defaultBranch: "develop",
|
|
86
|
+
sourcePath: "packages/backend",
|
|
87
|
+
enableLFS: true,
|
|
88
|
+
token: "test-token",
|
|
89
|
+
gitCommitMessage: "Init check commit",
|
|
90
|
+
gitAuthorName: "Test User",
|
|
91
|
+
gitAuthorEmail: "test.user@example.com"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
})
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
description: "Initialize git repository with different source path",
|
|
99
|
+
example: yaml__default.default.stringify({
|
|
100
|
+
steps: [
|
|
101
|
+
{
|
|
102
|
+
action: "publish:bitbucketServer",
|
|
103
|
+
id: "publish-bitbucket-server-minimal",
|
|
104
|
+
name: "Publish To Bitbucket Server",
|
|
105
|
+
input: {
|
|
106
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
107
|
+
description: "This is a test repository",
|
|
108
|
+
repoVisibility: "public",
|
|
109
|
+
defaultBranch: "develop",
|
|
110
|
+
sourcePath: "packages/api",
|
|
111
|
+
enableLFS: true,
|
|
112
|
+
token: "test-token",
|
|
113
|
+
gitCommitMessage: "Init check commit",
|
|
114
|
+
gitAuthorName: "Test User",
|
|
115
|
+
gitAuthorEmail: "test.user@example.com"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
})
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
description: "Initialize git repository with default settings and custom author information",
|
|
123
|
+
example: yaml__default.default.stringify({
|
|
124
|
+
steps: [
|
|
125
|
+
{
|
|
126
|
+
action: "publish:bitbucketServer",
|
|
127
|
+
id: "publish-bitbucket-server-custom-author",
|
|
128
|
+
name: "Publish To Bitbucket Server",
|
|
129
|
+
input: {
|
|
130
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
131
|
+
gitAuthorName: "Custom Author",
|
|
132
|
+
gitAuthorEmail: "custom.author@example.com"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
})
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
description: "Initialize git repository with LFS enabled and a specific commit message",
|
|
140
|
+
example: yaml__default.default.stringify({
|
|
141
|
+
steps: [
|
|
142
|
+
{
|
|
143
|
+
action: "publish:bitbucketServer",
|
|
144
|
+
id: "publish-bitbucket-server-lfs-commit",
|
|
145
|
+
name: "Publish To Bitbucket Server",
|
|
146
|
+
input: {
|
|
147
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
148
|
+
enableLFS: true,
|
|
149
|
+
gitCommitMessage: "Initial commit with LFS enabled"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
})
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
description: "Initialize git repository with a custom source path and token",
|
|
157
|
+
example: yaml__default.default.stringify({
|
|
158
|
+
steps: [
|
|
159
|
+
{
|
|
160
|
+
action: "publish:bitbucketServer",
|
|
161
|
+
id: "publish-bitbucket-server-custom-source",
|
|
162
|
+
name: "Publish To Bitbucket Server",
|
|
163
|
+
input: {
|
|
164
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
165
|
+
sourcePath: "custom/source/path",
|
|
166
|
+
token: "custom-token"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
})
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
description: "Initialize git repository with private visibility and custom author details",
|
|
174
|
+
example: yaml__default.default.stringify({
|
|
175
|
+
steps: [
|
|
176
|
+
{
|
|
177
|
+
action: "publish:bitbucketServer",
|
|
178
|
+
id: "publish-bitbucket-server-private-custom-author",
|
|
179
|
+
name: "Publish To Bitbucket Server",
|
|
180
|
+
input: {
|
|
181
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
182
|
+
repoVisibility: "private",
|
|
183
|
+
gitAuthorName: "Private Author",
|
|
184
|
+
gitAuthorEmail: "private.author@example.com"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
})
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
description: "Initialize git repository with public visibility and specific commit message",
|
|
192
|
+
example: yaml__default.default.stringify({
|
|
193
|
+
steps: [
|
|
194
|
+
{
|
|
195
|
+
action: "publish:bitbucketServer",
|
|
196
|
+
id: "publish-bitbucket-server-public-commit",
|
|
197
|
+
name: "Publish To Bitbucket Server",
|
|
198
|
+
input: {
|
|
199
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
200
|
+
repoVisibility: "public",
|
|
201
|
+
gitCommitMessage: "Public repository initial commit"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
})
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
description: "Initialize git repository with all settings customized",
|
|
209
|
+
example: yaml__default.default.stringify({
|
|
210
|
+
steps: [
|
|
211
|
+
{
|
|
212
|
+
action: "publish:bitbucketServer",
|
|
213
|
+
id: "publish-bitbucket-server-all-custom",
|
|
214
|
+
name: "Publish To Bitbucket Server",
|
|
215
|
+
input: {
|
|
216
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
217
|
+
description: "A fully customized repository",
|
|
218
|
+
repoVisibility: "private",
|
|
219
|
+
defaultBranch: "development",
|
|
220
|
+
sourcePath: "src/backend",
|
|
221
|
+
enableLFS: true,
|
|
222
|
+
token: "custom-token",
|
|
223
|
+
gitCommitMessage: "Fully customized initial commit",
|
|
224
|
+
gitAuthorName: "Custom Dev",
|
|
225
|
+
gitAuthorEmail: "custom.dev@example.com"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
})
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
description: "Initialize git repository with a specific default branch and no LFS",
|
|
233
|
+
example: yaml__default.default.stringify({
|
|
234
|
+
steps: [
|
|
235
|
+
{
|
|
236
|
+
action: "publish:bitbucketServer",
|
|
237
|
+
id: "publish-bitbucket-server-no-lfs",
|
|
238
|
+
name: "Publish To Bitbucket Server",
|
|
239
|
+
input: {
|
|
240
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
241
|
+
defaultBranch: "main",
|
|
242
|
+
enableLFS: false
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
})
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
description: "Initialize git repository with a custom repository description and public visibility",
|
|
250
|
+
example: yaml__default.default.stringify({
|
|
251
|
+
steps: [
|
|
252
|
+
{
|
|
253
|
+
action: "publish:bitbucketServer",
|
|
254
|
+
id: "publish-bitbucket-server-custom-description",
|
|
255
|
+
name: "Publish To Bitbucket Server",
|
|
256
|
+
input: {
|
|
257
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
258
|
+
description: "A public repository with a custom description",
|
|
259
|
+
repoVisibility: "public"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
})
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
description: "Initialize git repository with a custom token for authentication",
|
|
267
|
+
example: yaml__default.default.stringify({
|
|
268
|
+
steps: [
|
|
269
|
+
{
|
|
270
|
+
action: "publish:bitbucketServer",
|
|
271
|
+
id: "publish-bitbucket-server-custom-token",
|
|
272
|
+
name: "Publish To Bitbucket Server",
|
|
273
|
+
input: {
|
|
274
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
275
|
+
token: "custom-auth-token"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
})
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
description: "Initialize git repository with a different repository root path",
|
|
283
|
+
example: yaml__default.default.stringify({
|
|
284
|
+
steps: [
|
|
285
|
+
{
|
|
286
|
+
action: "publish:bitbucketServer",
|
|
287
|
+
id: "publish-bitbucket-server-different-root",
|
|
288
|
+
name: "Publish To Bitbucket Server",
|
|
289
|
+
input: {
|
|
290
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
291
|
+
sourcePath: "different/root/path"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
})
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
description: "Initialize git repository with private visibility and LFS enabled",
|
|
299
|
+
example: yaml__default.default.stringify({
|
|
300
|
+
steps: [
|
|
301
|
+
{
|
|
302
|
+
action: "publish:bitbucketServer",
|
|
303
|
+
id: "publish-bitbucket-server-private-lfs",
|
|
304
|
+
name: "Publish To Bitbucket Server",
|
|
305
|
+
input: {
|
|
306
|
+
repoUrl: "hosted.bitbucket.com?project=project&repo=repo",
|
|
307
|
+
repoVisibility: "private",
|
|
308
|
+
enableLFS: true
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
})
|
|
313
|
+
}
|
|
314
|
+
];
|
|
315
|
+
|
|
316
|
+
exports.examples = examples;
|
|
317
|
+
//# sourceMappingURL=bitbucketServer.examples.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bitbucketServer.examples.cjs.js","sources":["../../src/actions/bitbucketServer.examples.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TemplateExample } from '@backstage/plugin-scaffolder-node';\nimport yaml from 'yaml';\n\nexport const examples: TemplateExample[] = [\n {\n description: 'Initialize git repository with required properties',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-minimal',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n },\n },\n ],\n }),\n },\n {\n description: 'Initialize git repository with all properties',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-minimal',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n description: 'This is a test repository',\n repoVisibility: 'private',\n defaultBranch: 'main',\n sourcePath: 'packages/backend',\n enableLFS: false,\n token: 'test-token',\n gitCommitMessage: 'Init check commit',\n gitAuthorName: 'Test User',\n gitAuthorEmail: 'test.user@example.com',\n },\n },\n ],\n }),\n },\n {\n description: 'Initialize git repository with public visibility',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-minimal',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n description: 'This is a test repository',\n repoVisibility: 'public',\n defaultBranch: 'main',\n sourcePath: 'packages/backend',\n enableLFS: true,\n token: 'test-token',\n gitCommitMessage: 'Init check commit',\n gitAuthorName: 'Test User',\n gitAuthorEmail: 'test.user@example.com',\n },\n },\n ],\n }),\n },\n {\n description: 'Initialize git repository with different default branch',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-minimal',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n description: 'This is a test repository',\n repoVisibility: 'public',\n defaultBranch: 'develop',\n sourcePath: 'packages/backend',\n enableLFS: true,\n token: 'test-token',\n gitCommitMessage: 'Init check commit',\n gitAuthorName: 'Test User',\n gitAuthorEmail: 'test.user@example.com',\n },\n },\n ],\n }),\n },\n {\n description: 'Initialize git repository with different source path',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-minimal',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n description: 'This is a test repository',\n repoVisibility: 'public',\n defaultBranch: 'develop',\n sourcePath: 'packages/api',\n enableLFS: true,\n token: 'test-token',\n gitCommitMessage: 'Init check commit',\n gitAuthorName: 'Test User',\n gitAuthorEmail: 'test.user@example.com',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with default settings and custom author information',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-custom-author',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n gitAuthorName: 'Custom Author',\n gitAuthorEmail: 'custom.author@example.com',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with LFS enabled and a specific commit message',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-lfs-commit',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n enableLFS: true,\n gitCommitMessage: 'Initial commit with LFS enabled',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with a custom source path and token',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-custom-source',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n sourcePath: 'custom/source/path',\n token: 'custom-token',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with private visibility and custom author details',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-private-custom-author',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n repoVisibility: 'private',\n gitAuthorName: 'Private Author',\n gitAuthorEmail: 'private.author@example.com',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with public visibility and specific commit message',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-public-commit',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n repoVisibility: 'public',\n gitCommitMessage: 'Public repository initial commit',\n },\n },\n ],\n }),\n },\n {\n description: 'Initialize git repository with all settings customized',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-all-custom',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n description: 'A fully customized repository',\n repoVisibility: 'private',\n defaultBranch: 'development',\n sourcePath: 'src/backend',\n enableLFS: true,\n token: 'custom-token',\n gitCommitMessage: 'Fully customized initial commit',\n gitAuthorName: 'Custom Dev',\n gitAuthorEmail: 'custom.dev@example.com',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with a specific default branch and no LFS',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-no-lfs',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n defaultBranch: 'main',\n enableLFS: false,\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with a custom repository description and public visibility',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-custom-description',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n description: 'A public repository with a custom description',\n repoVisibility: 'public',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with a custom token for authentication',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-custom-token',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n token: 'custom-auth-token',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with a different repository root path',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-different-root',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n sourcePath: 'different/root/path',\n },\n },\n ],\n }),\n },\n {\n description:\n 'Initialize git repository with private visibility and LFS enabled',\n example: yaml.stringify({\n steps: [\n {\n action: 'publish:bitbucketServer',\n id: 'publish-bitbucket-server-private-lfs',\n name: 'Publish To Bitbucket Server',\n input: {\n repoUrl: 'hosted.bitbucket.com?project=project&repo=repo',\n repoVisibility: 'private',\n enableLFS: true,\n },\n },\n ],\n }),\n },\n];\n"],"names":["yaml"],"mappings":";;;;;;;;AAmBO,MAAM,QAA8B,GAAA;AAAA,EACzC;AAAA,IACE,WAAa,EAAA,oDAAA;AAAA,IACb,OAAA,EAASA,sBAAK,SAAU,CAAA;AAAA,MACtB,KAAO,EAAA;AAAA,QACL;AAAA,UACE,MAAQ,EAAA,yBAAA;AAAA,UACR,EAAI,EAAA,kCAAA;AAAA,UACJ,IAAM,EAAA,6BAAA;AAAA,UACN,KAAO,EAAA;AAAA,YACL,OAAS,EAAA,gDAAA;AAAA,WACX;AAAA,SACF;AAAA,OACF;AAAA,KACD,CAAA;AAAA,GACH;AAAA,EACA;AAAA,IACE,WAAa,EAAA,+CAAA;AAAA,IACb,OAAA,EAASA,sBAAK,SAAU,CAAA;AAAA,MACtB,KAAO,EAAA;AAAA,QACL;AAAA,UACE,MAAQ,EAAA,yBAAA;AAAA,UACR,EAAI,EAAA,kCAAA;AAAA,UACJ,IAAM,EAAA,6BAAA;AAAA,UACN,KAAO,EAAA;AAAA,YACL,OAAS,EAAA,gDAAA;AAAA,YACT,WAAa,EAAA,2BAAA;AAAA,YACb,cAAgB,EAAA,SAAA;AAAA,YAChB,aAAe,EAAA,MAAA;AAAA,YACf,UAAY,EAAA,kBAAA;AAAA,YACZ,SAAW,EAAA,KAAA;AAAA,YACX,KAAO,EAAA,YAAA;AAAA,YACP,gBAAkB,EAAA,mBAAA;AAAA,YAClB,aAAe,EAAA,WAAA;AAAA,YACf,cAAgB,EAAA,uBAAA;AAAA,WAClB;AAAA,SACF;AAAA,OACF;AAAA,KACD,CAAA;AAAA,GACH;AAAA,EACA;AAAA,IACE,WAAa,EAAA,kDAAA;AAAA,IACb,OAAA,EAASA,sB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