GitHub Connector 24.3

# 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 2024 Open Text
Version 24.3 | Last updated June 2024

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: IDOL GitHub Connector 24.3

Topic Title: Insert a Branch