Transform Github Submission Request

Converting a problem into a pull request is easy with the hub command:

hub pull-request -i 123 

But how do you go the other way and convert the request to return back to the problem?

+4
source share
1 answer

You cannot convert a return request back to a problem. Converting to pull request is done using hub with github api . There is no inverse function in api.

If, however, you intend to remove the commit from the pull request, then you want to change the branch, the pull request is based on shutdown and do git push -f .

A merge request will include only those commits that are in the branch during the merge. However, you cannot completely hide these old commits. They are still visible in the pull request history / comments.


You can remove the function branch in github. A drawn request will contain the last known commits. If a failed request is merged, changes to the function branches do not subsequently affect the request.


github-cli installs the ghi tool to deal with github issues from the command line using the github api . However, since the api does not provide a "lowering" of pull requests for problems, this tool also does not work.

+1
source

All Articles