pull-request

Prevent TFS from adding new commits to open pull request?

半腔热情 提交于 2020-01-06 02:27:17
问题 I have a git repository in my TFS 2013 server. I created a Pull Request 5 days ago, from my personal branch to the shared 'develop' branch. Since then, I've continued developing on other features, and pushed the commits to my branch on the server. I'm not ready to merge these into the develop branch yet. The pull request hasn't been approved yet, but now shows all of my subsequent commits being included in the pull request. How do I stop TFS doing this? (from other questions, like this one:

Followup: Etiquette of GitHub Contributing, Pull Requests vs New Issue

╄→尐↘猪︶ㄣ 提交于 2020-01-05 08:10:33
问题 as a followup to Etiquette of GitHub Contributing, Pull Requests vs New Issue: What is the 'etiquette' way of submitting a pull request to an all-ready pulled bit of code? Consider: Author A - owns the repo for TowerApp. Author B - forks TowerApp, creates a new feature - ElevatorModule, then submits a pull request. Author A - likes the ElevatorModule pull request so he/she merges it Author C - finds Author A's TowerApp and wants to update ElevatorMusic in ElevatorModule that was recently

Followup: Etiquette of GitHub Contributing, Pull Requests vs New Issue

我们两清 提交于 2020-01-05 08:10:11
问题 as a followup to Etiquette of GitHub Contributing, Pull Requests vs New Issue: What is the 'etiquette' way of submitting a pull request to an all-ready pulled bit of code? Consider: Author A - owns the repo for TowerApp. Author B - forks TowerApp, creates a new feature - ElevatorModule, then submits a pull request. Author A - likes the ElevatorModule pull request so he/she merges it Author C - finds Author A's TowerApp and wants to update ElevatorMusic in ElevatorModule that was recently

Prevent users to commit on develop/master

六眼飞鱼酱① 提交于 2020-01-05 07:10:37
问题 We have a bitbucket server, we have introduced the usage of Pull Requests to protect two branches: Master and Develop. This works well and people cannot push anymore to those branch on our bitbucket server. But the issue is that sometimes when we took the develop version to test some behavior, we forget to change the branch for doing our modification, and we do some commit locally that we cannot push to the server. My question is: Is there a way to prevent users from committing on those two

Why cannot git reset to pull request

☆樱花仙子☆ 提交于 2020-01-03 03:33:12
问题 Sometimes I log onto a cloud instance, pull a repo, and then want to try a pull request. The command I use now is git fetch origin pull/<ID>/head && git checkout FETCH_HEAD which is long. I also tried shorter ways git reset --hard origin/pull/<ID> git reset --hard origin/pull/<ID>/head git reset --hard origin/pull/<ID>/HEAD which give the following error $ git reset --hard origin/pull/27 fatal: ambiguous argument 'origin/pull/27': unknown revision or path not in the working tree. Use '--' to

How to Clone a private repository of github organization in a Jenkins Job

China☆狼群 提交于 2020-01-02 11:42:57
问题 I am the owner of github organization and I have access to all repositories. Some of them are private and others are public. I am trying to set up Jenkins to trigger builds when a pull request is made to any repository of the organization. The problem is that i have an external system which is notified via github webhooks whenever a pull request is made. I have to integrate Jenkins with this system which is a requirement. This system can also trigger notifications to Jenkins via api requests.

How to create a tag on GitHub when a PR is merged?

谁都会走 提交于 2020-01-01 14:49:08
问题 My current workflow requires a version Bump on every PR, so I would like to take advantage of that and automatically create a tag on GitHub on every PR merge, so it appears in the "release" section. I've seen that I can write a post-merge hook. My doubt is if that hook runs locally in my machine, remotely on GitHub, or both (given that I merge the PR on GitHub, and not locally. What's the case? 回答1: I can write a post-merge hook. My doubt is if that hook runs locally in my machine, remotely

Understanding pull requests on GitHub: What happens, when the requesting repository is deleted?

北战南征 提交于 2019-12-30 04:01:07
问题 Following scenario: I forked an open source repository ( GitHub -> project -> Fork ). Then I cloned my project copy locally, made some changes in the master branch, commited them, and pushed to my repository: $ git clone git@github.com-myusername:myusername/originalprojectname.git ... changes ... $ cd originalprojectname $ git add path/to/changed/file.php $ git commit -m "..." $ push After it I started a pull request on GitHub. It has been marked as "Good to merge" and added to Milestone: x.y

How to select/comment on a range of lines in github pull request?

主宰稳场 提交于 2019-12-30 01:34:14
问题 There is an option to comment on a range of lines in file on github, see How to refer to a specific line or range of lines in github? But is there similar option to comment on range of lines inside pull request? When I click on line, only single line is highlighted yellow and R### (e.g. R446) is appended to url, clicking another line with shift pressed doesn't do anything. I tried to change url to R446-450 but it didn't do anything. Changing it to #L450-458 also didn't do anything. Also even

How to modify Github pull request?

…衆ロ難τιáo~ 提交于 2019-12-28 07:54:21
问题 I've opened a pull request to a project. The maintainer has decided to accept it, but told me to modify some contents. How can I do it? Whether I should keep the commit hash unchanged, how can I do it? 回答1: just push more commits on to the branch the request is for. The pull request will pick this up then Example: If you want to have b merged into master You push c1,c2,c3 to b then you make a new request for b it gets reviewed and you need more commits You push c11,c21,c31 to b The pull