Skip to content

craft-hub / GitIntegration

Class: GitIntegration ​

Defined in: packages/craft-hub/src/git-integration.ts:116

Plan and apply conservative local Git branch integrations for trusted projects.

Constructors ​

Constructor ​

new GitIntegration(): GitIntegration

Returns ​

GitIntegration

Methods ​

apply() ​

apply(project, request): Promise<GitIntegrationResult>

Defined in: packages/craft-hub/src/git-integration.ts:227

Recheck a reviewed Plan and apply its local Git steps to a trusted project.

Parameters ​

project ​

ProjectRecord

request ​

ApplyGitIntegrationRequest

Returns ​

Promise<GitIntegrationResult>


plan() ​

plan(project, request?): Promise<GitIntegrationPlan>

Defined in: packages/craft-hub/src/git-integration.ts:118

Inspect current Git state without changing refs, the index, or working-tree files.

Parameters ​

project ​

ProjectRecord

request? ​

GitIntegrationRequest = {}

Returns ​

Promise<GitIntegrationPlan>

Released under the MIT License.