-
I'm trying to create a scheduled task that does some house keeping on old issues, but having some issues with invoking GH APIs. I'm getting the GitHub instance from
Pretty sure the application in GitHub has all the needed permissions, so not sure what's going on. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The javadoc says it all :)
You cannot do anything useful with this client. You will either need an installation client (but in this case, you need to push the installationId in the config as you won't be able to get it from a payload) or you need to inject a token and create a standard client with a token (using Another option instead of pushing the installationId to the config might be to use something like If you need to create a config, it should be as easy as: https://github.com/quarkusio/quarkus-github-bot/blob/main/src/main/java/io/quarkus/bot/config/QuarkusGitHubBotConfig.java Let me know if this solves your issue or if you have other questions. |
Beta Was this translation helpful? Give feedback.
The javadoc says it all :)
You cannot do anything useful with this client.
You will either need an installation client (but in this case, you need to push the installationId in the config as you won't be able to get it from a payload) or you need to inject a token and create a standard client with a token (using
new GitHubBuilder().withOAuthToken(the token).build()
).Another option instead of pushing the installationId to the config might be to use something like
gitHubProvider.getApplicationClient()…