-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding deprecated methods with Apps , GHAppInstallationToken.getRepositories() returns null #1178
Comments
We use deprecated to also indicate preview APIs. |
That's something I wanted to discuss for 2. I think it's an anti-pattern and we should avoid this. You end up either with a ton of warnings or you suppress deprecation warnings. And if you do the latter, that means you will miss real deprecations. |
@gsmet I'd like to have a way to clearly communicate to consumers of the library that these methods/classes are not covered by semver and may change at any time. On the other had, despite things being "preview" GitHub rarely makes breaking changes in them. I definitely feel we're inconveniencing/confusing a lot of users for a minimal/edge case. See #1003 and #1017 and #1179. We don't have to wait for v2 for either of these. For #1003, we just nuke the |
That would be a separate bug. Please file it separately. |
I am following this documentation : https://github-api.kohsuke.org/githubappjwtauth.html
Which helped me to create the following snippet :
As you can see, most of my code here is marked as deprecated, so my guess is that you have newer apis that I should be using.
Could you please clarify what is the right usage? I was unable to find that out from the docs or the Java docs. As mentioned, I landed on the code above after following the docs. Or are they deprecated because of the
@BetaApi
annotation?As a side note
token.getRepositories())
returnsnull
even when I was able to get them using the token and the API. Not sure if it is related to my use of deprecated apis or if this is a bugThe text was updated successfully, but these errors were encountered: