Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CodeTransformRegistration<PARAMS, ADDITIONAL_PARAMS>

Type for registering a project transform, which can make changes across projects

Type parameters

  • PARAMS = NoParameters

  • ADDITIONAL_PARAMS = {}

Hierarchy

Index

Properties

Optional autoSubmit

autoSubmit: boolean

Configure command to submit without confirmation

Optional chatty

chatty: boolean

Whether or not this project operation should send messages during processing.

Defaults to true.

Optional concurrency

concurrency: { maxConcurrent?: number; requiresJob?: boolean }

Configure the concurrency behavior of running project operations on many repos

Type declaration

  • Optional maxConcurrent?: number

    Maximum number of concurrent project operations would be executing

  • Optional requiresJob?: boolean

    Indicate if a Job scheduling is required; even for only one project operation

Optional description

description: string

Description of the command

Optional intent

intent: string | string[] | RegExp

Intent or list of intents. What you need to type to invoke the command, for example via the bot.

name

name: string

Name of the command

Optional parameterStyle

parameterStyle: ParameterStyle

Configure strategy on how to prompt for parameters in chat or web

Optional parameters

parameters: ParametersDefinition<PARAMS>

Define parameters used by this command.

Optional paramsMaker

paramsMaker: Maker<PARAMS>

Function to create a parameters object used by this command. Empty parameters will be returned by default.

Optional projectTest

projectTest: ProjectPredicate

Programmatically limit repositories to inspect, by a project predicate. This can look inside project.

Optional registerWhen

registerWhen: (sdmConfiguration: SoftwareDeliveryMachineConfiguration) => boolean

If provided, select when this command is registered. Enables conditional registration on SDM startup, based on configuration, environment variables etc. This method is invoked during SDM startup.

param
returns

Type declaration

Optional repoFilter

repoFilter: RepoFilter

Additionally, programmatically limit repositories to inspect, by id

Optional repoFinder

repoFinder: RepoFinder

Optional repoLoader

repoLoader: (p: PARAMS) => RepoLoader

Type declaration

    • (p: PARAMS): RepoLoader
    • Parameters

      • p: PARAMS

      Returns RepoLoader

Optional tags

tags: string | string[]

Tags associated with this command. Useful in searching.

Optional targets

targets: Maker<RepoTargets>

Allow customization of the repositories that an inspection targets.

transform

transform: CodeTransformOrTransforms<PARAMS & ADDITIONAL_PARAMS>

Function to transform the project

Optional transformPresentation

transformPresentation: TransformPresentation<PARAMS>

How to present the transformation - would you like a Pull Request or a branch commit? What would you like in the commit message, or the title of the pull request? All these and more can be specified in the EditMode, which this function can choose based on the invocation of this command and the code itself.

This defaults to a pull request with branch name derived from the transform name.

Methods

Optional onTransformResults

Generated using TypeDoc