-
Notifications
You must be signed in to change notification settings - Fork 737
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
List app installation requests endpoint #2012
List app installation requests endpoint #2012
Conversation
/** | ||
* Obtains all the installation requests associated with this app. | ||
* <p> | ||
* You must use a JWT to access this endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation does not mention that you must use a JWT explicitly for this endpoint, unlike other endpoints in this class, but I am assuming that is just a miss in their documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might add a check that throws an exception or at least logs a warning when not using JWT credentials.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already get this: A JSON web token could not be decoded
in the response. We can add a pre-check too if you think it would be useful. We'll have to add it to GitHub.getApp()
too, as that one is called before listInstallationRequests()
. Also, how would such a check look like? a simple authorization.startsWith("Bearer ")
check?
Couple of things
Edit: I see there is already an issue (#1816) created for the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2012 +/- ##
============================================
+ Coverage 83.60% 83.61% +0.01%
- Complexity 2377 2381 +4
============================================
Files 234 235 +1
Lines 7250 7257 +7
Branches 382 382
============================================
+ Hits 6061 6068 +7
Misses 955 955
Partials 234 234 ☔ View full report in Codecov by Sentry. |
Description
Adds a new endpoint.
Fixes #2011
Before submitting a PR:
@link
JavaDoc entries to the relevant documentation on https://docs.github.com/en/rest .mvn -D enable-ci clean install site
locally. If this command doesn't succeed, your change will not pass CI.main
. You will create your PR from that branch.When creating a PR: