We have ability to create pull requests to GitHub from Git Bash with command hub pull-request
. Can I create pull request from Git Bash into Azure DevOps?
You can set up pull request triggers for both Azure Repos or GitHub repositories. From within your project, Select Pipelines > Releases, and then select your release pipeline. Under the Pull request trigger section, select the toggle button to enable it.
Import into a new repoSelect Repos, Files. From the repo drop-down, select Import repository. If the source repo is publicly available, just enter the clone URL of the source repository and a name for your new Git repository.
Can I create pull request from Git Bash into Azure DevOps?
I think the answer is yes. We could expand the Git aliases with VSTS CLI commands to achieve it.
There is VSTS CLI interface that we could configure to use git aliases including creating pull requests. Also, we could expand the Git aliases with VSTS CLI commands to create pull requests.
For the details, you can check this document:
Visual Studio and Azure DevOps Git: Extend the git command line with server commands–Part 2
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With