git-workspace-service 0.3.4 → 0.4.0
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/README.md +19 -0
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -295,6 +295,11 @@ interface WorkspaceConfig {
|
|
|
295
295
|
* Hook to run when workspace operations complete
|
|
296
296
|
*/
|
|
297
297
|
onComplete?: CompletionHook;
|
|
298
|
+
/**
|
|
299
|
+
* Exact branch name to use. If provided, overrides the auto-generated
|
|
300
|
+
* name from prefix/execution/task. The branch is still created from baseBranch.
|
|
301
|
+
*/
|
|
302
|
+
branchName?: string;
|
|
298
303
|
}
|
|
299
304
|
/**
|
|
300
305
|
* A provisioned git workspace
|
package/dist/index.d.ts
CHANGED
|
@@ -295,6 +295,11 @@ interface WorkspaceConfig {
|
|
|
295
295
|
* Hook to run when workspace operations complete
|
|
296
296
|
*/
|
|
297
297
|
onComplete?: CompletionHook;
|
|
298
|
+
/**
|
|
299
|
+
* Exact branch name to use. If provided, overrides the auto-generated
|
|
300
|
+
* name from prefix/execution/task. The branch is still created from baseBranch.
|
|
301
|
+
*/
|
|
302
|
+
branchName?: string;
|
|
298
303
|
}
|
|
299
304
|
/**
|
|
300
305
|
* A provisioned git workspace
|
package/dist/index.js
CHANGED
|
@@ -339,7 +339,12 @@ var WorkspaceService = class {
|
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
const branchInfo =
|
|
342
|
+
const branchInfo = config.branchName ? {
|
|
343
|
+
name: config.branchName,
|
|
344
|
+
executionId: config.execution.id,
|
|
345
|
+
baseBranch: config.baseBranch,
|
|
346
|
+
createdAt: /* @__PURE__ */ new Date()
|
|
347
|
+
} : createBranchInfo(
|
|
343
348
|
{
|
|
344
349
|
executionId: config.execution.id,
|
|
345
350
|
role: config.task.role,
|