GitHub Connector 25.2
GitHub Connector Help

# Insert a Branch

To insert a branch, the XML that you construct should look similar to the following example.

    <insertXML>
        <insert>
            <reference>BranchInsert</reference>
            <property name="Organization" value="OrgName"/>
            <property name="Repository" value="RepoName"/>
            <property name="Branch" value="NewBranchName"/>
            <property name="Type" value="Branch"/>
            <xmlmetadata>
                <parentBranch>master</parentBranch>
            </xmlmetadata>
        </insert>
    </insertXML>

Properties for inserting a branch

Property | Required | Type | Description
--- | --- | --- | ---
Organization | Yes | String | The name of the organization that owns the repository.
Repository | Yes | String | The name of the repository in which to insert the branch.
Branch | Yes | String | The name of the new branch.
Type | Yes | String | To insert a branch, specify "Branch".

Metadata fields for branches

Field Path | Required | Type | Description
--- | --- | --- | ---
parentBranch | Yes | String | The name of the parent branch, to create the new branch from.

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery GitHub Connector 25.2

Topic Title: Insert a Branch