Can't create PRs to other repos with fine grained GithubApp user access token #142622
Unanswered
Leonidas-from-XIV
asked this question in
API and Webhooks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Hi,
I've created a GitHub app so I can use the device flow to create a user auth token. The app has the Pull Requests: read & write permission enabled, is installed to my account and can access to all my repos. I successfully managed to create PRs against my own repo.
But when I attempt to create a PR of a branch from my repo (I'm
$owner
) to the repo my repo was forked like this:I get an error message:
The
$target_owner
is another user and if I just use the web UI then it works just fine. If I look at the HTTP headers, I see that it seems to want thepull_requests=write
permission which I have. The token is still valid and the rate limits have not been hit.So my question is what am I doing wrong? Does the app need to be installed into the repo of the other user? That makes it difficult to automate if I can only create PRs to repos which have my GH app installed.
Beta Was this translation helpful? Give feedback.
All reactions