GitHub Connector 12.11

# 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 2022 Micro Focus or one of its affiliates
Version 12.11 | Last updated February 2022

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL GitHub Connector 12.11

Topic Title: Insert a Branch