Documentation
    Preparing search index...

    Repository integration logic specifically adapting GitHub via the official Octokit SDK.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    _octokit: Octokit & { paginate: PaginateInterface } & RestEndpointMethods & Api
    _owner: string
    _repo: string

    Methods

    • Creates a new branch via the GitHub API based on an existing branch's latest commit.

      Parameters

      • branchName: string

        The new branch name.

      • fromBranch: string = 'main'

        The source branch name.

      Returns Promise<void>

    • Fetches the latest reference for a specific branch from GitHub.

      Parameters

      • branch: string = 'main'

        The branch name to pull.

      Returns Promise<void>

    • Commits and pushes a set of files to a specified GitHub branch.

      Parameters

      • files: CommitFile[]

        List of files to commit.

      • message: string

        The commit message.

      • branch: string = 'main'

        The target branch name.

      Returns Promise<void>