Added pull request remote branch to GUI.
This commit is contained in:
parent
429405809e
commit
3400271bc5
9 changed files with 118 additions and 22 deletions
|
|
@ -31,6 +31,27 @@ class BitbucketHgBuild extends MercurialBuild
|
|||
return 'https://bitbucket.org/' . $this->getProject()->getReference() . '/src/?at=' . $this->getBranch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get link to remote branch (from pull request) from another source (i.e. BitBucket)
|
||||
*/
|
||||
public function getRemoteBranchLink()
|
||||
{
|
||||
$remoteBranch = $this->getExtra('remote_branch');
|
||||
$remoteReference = $this->getExtra('remote_reference');
|
||||
|
||||
return 'https://bitbucket.org/' . $remoteReference . '/src/?at=' . $remoteBranch;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get link to tag from another source (i.e. BitBucket)
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTagLink()
|
||||
{
|
||||
return 'https://bitbucket.org/' . $this->getProject()->getReference() . '/src/?at=' . $this->getTag();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the URL to be used to clone this remote repository.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue