Added pull request remote branch to GUI.

This commit is contained in:
Dmitry Khomutov 2018-02-23 19:31:06 +07:00
commit 3400271bc5
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
9 changed files with 118 additions and 22 deletions

View file

@ -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.
*