AIFlow API Documentation
    Preparing search index...

    Class GitPlatformServiceAbstract

    Abstract base class for Git platform services

    Hierarchy (View Summary)

    Index

    Methods

    • Create a merge/pull request

      Parameters

      • sourceBranch: string

        Source branch name

      • targetBranch: string

        Target branch name

      • title: string

        Request title

      • Optionaloptions: MergeRequestOptions

        Merge request options including assignees, reviewers, squash, etc.

      Returns Promise<string>

      Web URL of the created request

    • Create a merge/pull request (legacy method for backward compatibility)

      Parameters

      • sourceBranch: string

        Source branch name

      • targetBranch: string

        Target branch name

      • title: string

        Request title

      • Optionalsquash: boolean

        Whether to squash commits

      • OptionalremoveSourceBranch: boolean

        Whether to remove source branch after merge

      Returns Promise<string>

      Web URL of the created request

      Use createMergeRequest with options parameter instead

    • Get project information from current Git remote

      Returns Promise<GitPlatformProject>

      Project information

    • Get project information by path

      Parameters

      • projectPath: string

        Project path (e.g., 'user/repo')

      Returns Promise<GitPlatformProject>

      Project information