pull-request-comment-branch icon indicating copy to clipboard operation
pull-request-comment-branch copied to clipboard

how to get PR repo name ?

Open gotson opened this issue 2 years ago • 3 comments

Hi,

how can i retrieve the repository that was used as the source for the PR ?

For example on this PR: https://github.com/xerial/sqlite-jdbc/pull/818 i need to retrieve both the repository pyckle/sqlite-jdbc as well as the branch backup_restore_fix.

It seems i can only get backup_restore_fix when using head_ref.

gotson avatar Jan 05 '23 09:01 gotson

+1, also looking to access these fields.

Edit: if anyone needs this, feel free to use my fork at alessbell/[email protected], e.g. https://github.com/apollographql/apollo-client/pull/10568/files#diff-9dc5e53b8fc4bd9d74ca8c2d8d9d5bf7f94c6a8ccc49f2bcc142ec5c171686d1L27-L34

alessbell avatar Feb 02 '23 14:02 alessbell

i already had it published as gotson/pull-request-comment-branch@head-repo-owner-dist since i needed it myself :)

gotson avatar Feb 20 '23 09:02 gotson

Hi @xt0rted, is there any way we can this merged and released?

aleclarson avatar Aug 07 '24 20:08 aleclarson