pull-request

Undo a merge by pull request?

杀马特。学长 韩版系。学妹 提交于 2019-11-30 10:04:21
问题 Someone accepted a pull request which they shouldn't have. Now we have a bunch of broken code merged in. How do you undo a pull request? I was just going to revert the changes to the commit just before the merge, but I noticed that it merged in a bunch of commits. So now there are all these commits from this person from days before the merge. How do you undo this? 回答1: There is a better answer to this problem, though I could just break this down step-by-step. You will need to fetch and

How can I get a list of all pull requests for a repo through the github API?

假装没事ソ 提交于 2019-11-30 06:21:31
I want to obtain a list of all pull requests on a repo through the github API. I've followed the instructions at http://developer.github.com/v3/pulls/ but when I query '/repos/:owner/:repo/pulls' its consistently returning fewer pull requests than are displayed on the website. For example, when I query the torvalds/linux repo I get 9 open pull requests (there are 14 on the website). If I add '?state=closed' I get a different set of 11 closed pull requests (the website shows around 20). Does anyone know where this discrepancy arises, and if there's any way to get a complete list of pull

Find a Pull Request on Github where a commit was originally created

∥☆過路亽.° 提交于 2019-11-30 06:10:39
问题 Pull Requests are great for understanding the larger thinking around a change or set of changes made to a repo. Reading pull requests are a great way to quickly "grok" a project as, instead of small atomic changes to the source, you get larger groupings of logical changes. Analogous to organizing the lines in your code into related "stanzas" to make it easier to read. I find myself looking at a file or a commit, and I wonder if there is a way to backtrack the commit to the Pull Request that

Renaming a branch while on pull request

大憨熊 提交于 2019-11-29 21:17:13
On Github, you can make pull requests to add functionality to a project. One's contributions have to be on a branch that, if the request is accepted, will be merged into the master branch (or an analogous one) of the project. Now, I submitted a pull request on Github and my contributions are on a branch called patch-1 . I can modify the name of the branch locally by git branch -m patch-1 newname and in principle I can also rename it on my forked repo on Github by following the instruction found in this answer . This is done in practice by removing the old branch, patch-1 in my case, and repush

GitHub: Reopening a merged pull request

倖福魔咒の 提交于 2019-11-29 20:32:22
I made some changes I submitted a pull request The pull request was accepted and merged. We found a bug The changes were removed again whilst I fixed the bug. I've now fixed the bug and want to resubmit the pull request with 1 extra commit. Is there any way to reopen the pull request or update it, or do I have to create a new pull request, type out the description etc again? Gitorious has this feature and we've recently moved to GitHub. The answer seems to be: You can't. Once a pull request is merged and closed, it is locked forever and cannot be reopened. If your pull request is merged,

How to cancel a pull request on github?

巧了我就是萌 提交于 2019-11-29 20:31:53
How can a pull request on github be cancelled? UPDATE The accepted answer didn't detail the steps in the answer and in any case, github has made this dead simple since this question was asked, so here are the steps: Visit the pull request page Tap the "close pull request button" you cad sir - take that GitHub now supports closing a pull request VonC In the spirit of a DVCS (as in "Distributed"), you don't cancel something you have published: Pull requests are essentially patches you have send (normally by email, here by GitHub webapp), and you wouldn't cancel an email either ;) But since the

Can I make a pull request on a gist on GitHub?

ぃ、小莉子 提交于 2019-11-29 19:28:47
Can I make a pull request on some else's gist on GitHub? I'm aware of the fork, clone and commit workflow for a gist I own. I'd like to know if I can request to update someone else's gist with my fork. You cannot currently open a pull request on a Gist. You can comment though on the Gist and ask the author to update the Gist from your fork. studgeek As @Kevin said, unfortunately GitHub doesn't expose a GUI for pull requests on gists. You can however fork the gist, make your changes in the fork, then share a link to your fork with the original author. If the original author is keeping a local

Creating pull requests in gitlab

三世轮回 提交于 2019-11-29 15:57:44
问题 I have gitlab installation running, and I have a repository with library that I want to share with my friends, I can't understand what is the flow of sending pull request in gitlab.. The user can't fork my repository, he can't access my project (unless he is my on team.. which is weird..) and the merge request can be from one branch to another in my repository.. How it works in gitlab? 回答1: GitLab will have forking as of version 5.2. Cross repo pull requests will soon follow. Fork pull

How can I get a list of all pull requests for a repo through the github API?

醉酒当歌 提交于 2019-11-29 06:58:49
问题 I want to obtain a list of all pull requests on a repo through the github API. I've followed the instructions at http://developer.github.com/v3/pulls/ but when I query '/repos/:owner/:repo/pulls' its consistently returning fewer pull requests than are displayed on the website. For example, when I query the torvalds/linux repo I get 9 open pull requests (there are 14 on the website). If I add '?state=closed' I get a different set of 11 closed pull requests (the website shows around 20). Does

How do I push to a pull request on github?

可紊 提交于 2019-11-29 01:44:02
问题 I've added this to my .git/config file: fetch = +refs/pull/*/head:refs/remotes/origin/pr/* Which allows me to pull down pull request diffs, but when I check it out it actually creates a branch with that same name. Is there any way for me to push to pr/2 and have it actually go to the pull request instead of going to a new branch named pr/2 ? 回答1: A Pull Request is just a request to merge a certain branch. This means commits made to the branch after the pull request is opened will be included