Can I query something to find the repo URL path from the repo number?

jcurleyWR
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2014

From the admin side of stash, we have the repository numbers. From the command line, can I query something, like the database, to learn the URL path for each number? I know the server name, so I just need the {project}/{repo.git} value.

Thank you,

John

2 answers

1 accepted

0 votes
Answer accepted
jcurleyWR
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2014

I found a way to query the DB:

select repository.id,project.project_key,repository.slug FROM repository LEFT JOIN project on project.id=repository.project_id order by repository.id;

0 votes
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 7, 2014

Hi John,

You might be interested in the following plugin:

https://bitbucket.org/atlassian/stash-reponame-plugin

Charles

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events