chore: last of the removals for scaffolder-backend + scaffolder-common
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -78,6 +78,7 @@ export const createBuiltinActions = (
|
||||
config,
|
||||
additionalTemplateFilters,
|
||||
} = options;
|
||||
|
||||
const githubCredentialsProvider: GithubCredentialsProvider =
|
||||
DefaultGithubCredentialsProvider.fromIntegrations(integrations);
|
||||
|
||||
|
||||
@@ -71,13 +71,6 @@ export const executeShellCommand = async (options: RunCommandOptions) => {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Run a command in a sub-process, normally a shell command.
|
||||
* @public
|
||||
* @deprecated use {@link executeShellCommand} instead
|
||||
*/
|
||||
export const runCommand = executeShellCommand;
|
||||
|
||||
export async function initRepoAndPush({
|
||||
dir,
|
||||
remoteUrl,
|
||||
|
||||
@@ -22,5 +22,5 @@ export * from './filesystem';
|
||||
export * from './publish';
|
||||
export * from './github';
|
||||
|
||||
export { runCommand, executeShellCommand } from './helpers';
|
||||
export { executeShellCommand } from './helpers';
|
||||
export type { RunCommandOptions } from './helpers';
|
||||
|
||||
@@ -26,12 +26,6 @@ import { TemplateInfo } from '@backstage/plugin-scaffolder-common';
|
||||
* @public
|
||||
*/
|
||||
export type ActionContext<Input extends JsonObject> = {
|
||||
/**
|
||||
* Base URL for the location of the task spec, typically the url of the source entity file.
|
||||
* @deprecated please use templateInfo.baseUrl instead
|
||||
*/
|
||||
baseUrl?: string;
|
||||
|
||||
logger: Logger;
|
||||
logStream: Writable;
|
||||
secrets?: TaskSecrets;
|
||||
|
||||
@@ -120,14 +120,6 @@ export interface CurrentClaimedTask {
|
||||
secrets?: TaskSecrets;
|
||||
}
|
||||
|
||||
/**
|
||||
* TaskState
|
||||
*
|
||||
* @public
|
||||
* @deprecated use CurrentClaimedTask instead
|
||||
*/
|
||||
export type TaskState = CurrentClaimedTask;
|
||||
|
||||
function defer() {
|
||||
let resolve = () => {};
|
||||
const promise = new Promise<void>(_resolve => {
|
||||
|
||||
@@ -16,24 +16,21 @@
|
||||
export { DatabaseTaskStore } from './DatabaseTaskStore';
|
||||
export type { DatabaseTaskStoreOptions } from './DatabaseTaskStore';
|
||||
export { TaskManager } from './StorageTaskBroker';
|
||||
export type { CurrentClaimedTask, TaskState } from './StorageTaskBroker';
|
||||
export type { CurrentClaimedTask } from './StorageTaskBroker';
|
||||
export { TaskWorker } from './TaskWorker';
|
||||
export type { CreateWorkerOptions } from './TaskWorker';
|
||||
export type {
|
||||
TaskSecrets,
|
||||
TaskCompletionState,
|
||||
CompletedTaskState,
|
||||
TaskStoreEmitOptions,
|
||||
TaskStoreListEventsOptions,
|
||||
SerializedTask,
|
||||
SerializedTaskEvent,
|
||||
Status,
|
||||
TaskStatus,
|
||||
TaskEventType,
|
||||
TaskBroker,
|
||||
TaskContext,
|
||||
TaskStore,
|
||||
DispatchResult,
|
||||
TaskBrokerDispatchResult,
|
||||
TaskBrokerDispatchOptions,
|
||||
TaskStoreCreateTaskOptions,
|
||||
|
||||
@@ -29,14 +29,6 @@ export type TaskStatus =
|
||||
| 'cancelled'
|
||||
| 'completed';
|
||||
|
||||
/**
|
||||
* The status of each step of the Task
|
||||
*
|
||||
* @public
|
||||
* @deprecated use TaskStatus instead
|
||||
*/
|
||||
export type Status = TaskStatus;
|
||||
|
||||
/**
|
||||
* The state of a completed task.
|
||||
*
|
||||
@@ -44,14 +36,6 @@ export type Status = TaskStatus;
|
||||
*/
|
||||
export type TaskCompletionState = 'failed' | 'completed';
|
||||
|
||||
/**
|
||||
* The state of a completed task.
|
||||
*
|
||||
* @public
|
||||
* @deprecated use TaskCompletionState instead
|
||||
*/
|
||||
export type CompletedTaskState = TaskCompletionState;
|
||||
|
||||
/**
|
||||
* SerializedTask
|
||||
*
|
||||
@@ -115,14 +99,6 @@ export type TaskBrokerDispatchOptions = {
|
||||
secrets?: TaskSecrets;
|
||||
};
|
||||
|
||||
/**
|
||||
* DispatchResult
|
||||
*
|
||||
* @public
|
||||
* @deprecated use TaskBrokerDispatchResult instead
|
||||
*/
|
||||
export type DispatchResult = TaskBrokerDispatchResult;
|
||||
|
||||
/**
|
||||
* Task
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user