I'm trying to add GitHub app support to the github-branch-source Jenkins plugin,
I'm facing 2 main issues,
-
From the GitHub class I can't tell if I'm using a GitHub app
-
isCredentialValid / getMyself don't work
org.kohsuke.github.GHFileNotFoundException: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/users/#get-the-authenticated-user"}
Ideally isCredentialValid would do something else when using a GitHub app and not sure if there's anything that can be done about getMyself
cc @PauloMigAlmeida