URL patterns besides {repo_path}

Deleted user September 30, 2015

In the example for Atlassian connect for BitBucket I found '?repoPath={repo_path}', where {repo_path} gets expanded. Are there more variables which I can use here? I could not find this in the documentation. Specifically I'm interested in the git/mercurial URLs and if the repo is public

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
𝙶𝚛𝚊𝚗𝚝 𝙼𝚊𝚝𝚑𝚎𝚠𝚜
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 30, 2015

These are URI Templates, and the available templates vary depending on context.

For repositories, the available templates are:

  • repo_path: the repository path, including owner name
  • repo_https_url: URL to clone via HTTPS
  • repo_ssh_url: URL to clone via SSH
  • repo_language: which language the repository uses
  • repo_uuid: the UUID for the repository
  • repo_owner_uuid: the UUID for the repository owner
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2015

@Grant Mathews - thanks for providing these. Pending the resp. update to the Bitbucket Connect documentation, could you please expand this list regarding available URI Templates for other contexts like commits and branches etc., i.e. similar to the list your colleague @Abhin Chhabra provided in https://answers.atlassian.com/questions/29952740/answers/29953168?

2 votes
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 3, 2015

Answering my follow up question regarding URI Templates in other contexts here:

@Tim Pettersen has thankfully just announced his 'Location, Location, Location a.k.a pow(location, 3)add-on that lets you discover add-on module locations and context parameters from within in the Bitbucket UI - it reveals available context parameters in addition to those in the accepted answer, for example:

  • org.bitbucket.commit.summary.actions

    • commit_hash
  • org.bitbucket.branch.summary.actions
    • branch_name
    • branch_resolved_hash

The related URLs Tim referenced are:

TAGS
AUG Leaders

Atlassian Community Events