Make MainClass.get_app return completed GithubApp when slug is given#2543
Make MainClass.get_app return completed GithubApp when slug is given#2543EnricoMi merged 2 commits intoPyGithub:masterfrom
MainClass.get_app return completed GithubApp when slug is given#2543Conversation
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #2543 +/- ##
==========================================
+ Coverage 98.57% 98.68% +0.11%
==========================================
Files 118 117 -1
Lines 11980 11832 -148
==========================================
- Hits 11809 11677 -132
+ Misses 171 155 -16
☔ View full report in Codecov by Sentry. |
JLLeitschuh
left a comment
There was a problem hiding this comment.
I don't think I have enough context to fully understand this change and why it was the way it was originally, but the updated version of the code looks good to me!
|
I have rethought this: EnricoMi@7615867 When a slug is given, an app is fully identified. With this incomplete information, a GithubApp can be returned lazily. Without a slug, the current app is fetched through It was the opposite earlier. I think, it makes more sense now. Especially, the |
61e455d to
ec8a857
Compare
MainClass.get_app return completed GithubApp when slug is given
There is no need not to return a non-completed GithubApp at this point. A changing
urlsmells. Fixes #2487.