I'd like to create a bash script that creates a pull request for the repo I'm in.
I can determine the ssh url using `git remote -v`
this give me ssh://git@gitserver:7999/myproject/myrepo.git
I need the https url, project & repo-slug for the pull request api call.
Is there a way to get this info from my repo
As far as I can tell there is no documented way to determine this.
I decided to add some properties to the git config
git config --global bitbucket.server.sshurl 'ssh://git@gitserver:7999'
git config --global bitbucket.server.apiurl 'https://gitserver/rest/api/1.0'
git config --local bitbucket.repo.project myproject
git config --local bitbucket.repo.slug myrepo
sshurl can probably be used to get project and slug from the remote url
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events