October 11-13, 2022

GitKon 2022

Git Integration for Jira Self-Managed (Data Center/Server) Documentation

ScriptRunner – Javadocs – Class Branch

Branch information.

Summary

Constructors

Visibility Signature
public Branch( String name, String externalUrl, Repository repository)
public Branch( String name, String externalUrl, int ahead, int behind, Repository repository)

Methods

Type and modifiers Method signature
public int getAhead()
public int getBehind()
public String getExternalUrl()
public String getName()
public Repository getRepository()
public boolean isAheadBehindPresented()

Constructors

Branch(String, String, Repository)

Branch(String, String, int, int, Repository)

Methods

getAhead()

How far ahead is the branch from the main branch.

getBehind()

How far behind is the branch from the main branch.

getExternalUrl()

Link to the branch on Github/Gitlab/etc..

getName()

Returns the branch name.

getRepository()

Returns the repository the branch belongs to.

isAheadBehindPresented()

Returns whether branch ahead and behind are defined/calculated/meaningful.

Have feedback about this article? Did we miss something? Let us know!
On this page