pull-request

Create a Pull Request on Bitbucket from the command line

北战南征 提交于 2020-12-26 03:56:19
问题 Is there a git command to create a Pull Request directly on Bitbucket when pushing a Branch? Or any other way to create Pull Request on Bitbucket directly from the command line or PHP 回答1: You could use the BitBucket API and POST the right command, as in this thread: POST /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests That is: curl -u user:myPW -H "Content-Type: application/jso https://bitbucket.server.com/rest/api/1.0/projects/myProject/repos/myRepo/pull-requests -X

Git merge conflicts during PRs

孤街浪徒 提交于 2020-12-14 23:57:12
问题 I did a bit unusual setup where repositories were first set up, instead of populating the master branch with project files, a transfer branch was created and populated. Then, files were pull into development via PR and then again into master via another PR. And, going forward, topic branches are created off development branch. Once done, PR was created for topic --> development and another PR for development --> master . But, I keep getting merge conflict for second PR development --> master

What is the correct git config for working with GitHub pull requests?

ぐ巨炮叔叔 提交于 2020-08-22 07:48:46
问题 I'm aware of How can I check out a GitHub pull request? While adding fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to .git/config does allow fetch and checkout, pull actions fail: [remote "origin"] url = https://github.com/the/repo.git fetch = +refs/heads/*:refs/remotes/origin/* fetch = +refs/pull/*/head:refs/remotes/origin/pr/* Fetch and checkout work fine: $ git fetch origin ... all good $ git checkout -b "pr-123" origin/pr/123 Branch pr-123 set up to track remote branch pr/123 from

What is the correct git config for working with GitHub pull requests?

泄露秘密 提交于 2020-08-22 07:48:26
问题 I'm aware of How can I check out a GitHub pull request? While adding fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to .git/config does allow fetch and checkout, pull actions fail: [remote "origin"] url = https://github.com/the/repo.git fetch = +refs/heads/*:refs/remotes/origin/* fetch = +refs/pull/*/head:refs/remotes/origin/pr/* Fetch and checkout work fine: $ git fetch origin ... all good $ git checkout -b "pr-123" origin/pr/123 Branch pr-123 set up to track remote branch pr/123 from

GitHub search - how to exclude (logical NOT) company or user from search results

匆匆过客 提交于 2020-07-05 03:13:57
问题 In this search query (test it live ↗) I'm searching for: all pull requests by user limonte (me) for the vaadin company How can I search for all my pull requests except (logical NOT) those for vaadin company? These two options I tried without success: is:pr author:limonte user:!vaadin is:pr author:limonte user:NOT vaadin 回答1: Prefixing any search qualifier with a - excludes all results that are matched by that qualifier. For example, you might be interested in finding all "cats" repositories

GitHub search - how to exclude (logical NOT) company or user from search results

南笙酒味 提交于 2020-07-05 03:08:22
问题 In this search query (test it live ↗) I'm searching for: all pull requests by user limonte (me) for the vaadin company How can I search for all my pull requests except (logical NOT) those for vaadin company? These two options I tried without success: is:pr author:limonte user:!vaadin is:pr author:limonte user:NOT vaadin 回答1: Prefixing any search qualifier with a - excludes all results that are matched by that qualifier. For example, you might be interested in finding all "cats" repositories