octokit / rest.js

GitHub REST API client for JavaScript

Home Page:https://octokit.github.io/rest.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a pull request in fork A from fork B

kaovilai opened this issue · comments

What’s missing?
Looking at https://octokit.github.io/rest.js/v19#pulls-create there doesn't seem to be a way to create pull request from fork to fork.

Why?
It's needed to be done

Alternatives you tried
Could probably do some CLI hacks or other alternative in the interim.

does GitHub itself support this feature? I think only if fork B is a fork from A

Yes. Edit: let me find better example

@gr2m An example of fork to fork demo.
gr2m/fetch-mock#1

Both are forks of https://github.com/wheresrhys/fetch-mock

try to set head to username:branch.

Basically we can't add features that the API doesn't support. If the REST API can do it, then @octokit/rest can do it. See the docs for the REST API at https://docs.github.com/en/rest/pulls/pulls#create-a-pull-request

Resolved. It is possible with current library.
Had to make some changes in the actions I consumed.
tgymnich/fork-sync@master...b89779a#diff-7934bf411fea192ad8cd69e0a12911648a2842cb0f2409a8fb67b41b7069d757R68