-
I am using probot v9.15.1. Recently, our GHE has decided that all of our repos will be set to internal. This has caused an issue to arise in my usage of probot. There are times where I want to read or write to a repo that is outside the current context. context.github.repos.getContents({
owner : <different org from context>,
repo : <different repo>,
path : myPath,
ref : branch
}) Now, prior to changing the repos to internal, these requests worked. But now, with setting the repos to internal, they do not. I've been looking into the ProbotOctokit and GitHubAPI but I am not clear on how to use them or which one I would need. Is it possible to just "move up" the context and not have to create a new Github instance in order to access a different org/repo? If I have to use one of those, which one would be best? Do I have to provide a new auth or can I just get that from the existing probot app? I also tried using app.auth() but I still get "Bad credentials" when trying to get something outside the original context. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
What error do you get? Is the app still installed on all the repositories you are trying to access content from? |
Beta Was this translation helpful? Give feedback.
What error do you get? Is the app still installed on all the repositories you are trying to access content from?