How to change someone else Github request?

Someone created a migration request for my Github repository. It basically looks good, but I had to make a few minor changes to get it to transfer my continuous integration server.

Github's on-screen instructions to "view" the request should have been executed:

git checkout -b otheruser-fix_somebug git pull https://github.com/otheruser/myrepo.git fix_somebug 

Then I made my changes and committed locally. However, when I went to start git push , git told me:

 fatal: The current branch otheruser-fix_somebug has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin otheruser-fix_somebug 

which I did, but my changes are not displayed on the pull request, but instead, a copy of the otheruser-fix_somebug mirrored in my Github registry and not connected to the pull request.

How do I call git push to get the changes appearing in the transfer request?

+7
git github
source share
2 answers

As far as I know, you can only do this if they grant you permission. In the past, this was only possible thanks to the fact that they added you as a contributor to their plug, however, in September 2016, GitHub added a function for this particular use case , allowing the person requesting the Pull request to grant permission to the accompanying upstream repository (s) simply by checking the box.

You can comment on the Pull request by letting them know that you want to fix some of them before merging the Pull request and stating that you want them to give you permission to make their Pull request by checking the box "Allow editing from supporting "in the Pull request and giving them a link to the GitHub help page about this feature , so they can see exactly how to enable it. Once they do, you can directly click on the Pull request branch of your repository.


Things you can do if they do not / will not give you write access to the request request branch:

  • Comment on their Pull request:

    • Go to the Pull request in your browser.
    • Scroll to the bottom of the Conversation page (default)
    • Post comments that describe the changes they need to make before you accept the PR.
  • Comment code in Pull Request:

    • Go to the Pull request in your browser.
    • Clicking the β€œFiles changed” link at the top
    • Hover over the line of code to be modified.
    • Click the small blue β€œ+” button that appears next to it
      (NB: they appear only on modified and nearby lines)
    • Post a comment and / or some code to fix what's in there
    • Repeat 3-5 if necessary.
  • Accept it as is and then fix it in its own repository

    • Merge your branch as if nothing had happened to it
    • Make a new commit in your repository that fixes the problems (it is advisable to mention PR by the identifier of the problem in the commit message so that GitHub can tell about it and show it on the PR dialogue page)
+1
source share

How about checking the branches from a Pull request? Then you can commit there and click directly on this thread.

 git fetch git checkout fix_somebug 

add commit with your changes

 git push origin fix_somebug 
0
source share

All Articles