Can't access pull request files when authorized


Hi there,

I’ve set up an app. Just for testing purposes, I’ve set the permission to Read/Write in all categories (definitely set for Pull Requests). I have the app installed on my user.

I can authorize as the app using a JWT and hit /app for example. I can also get a token for the installation and get /repos/:owner/:repo/pulls. But when I try to get /repos/:owner/:repo/pulls/:number/files using either the jwt or the auth token I get a message saying “Resource not accessible by integration”

Not sure what I’m doing wrong, would really appreciate any guidance. Thanks!!


I was using the PR id instead of PR number, that was the issue. Not sure how to delete posts but this one is resolved. Sorry!