Make MainClass.get_app return completed GithubApp when slug is given (#2543)

Fixes slug attribute to fetch app when not set. Loads app with slug lazily, fetch complete app without slug.
This commit is contained in:
Enrico Minack
2023-06-08 10:06:28 +02:00
committed by GitHub
parent fc2d0e150a
commit 84912a675c
3 changed files with 10 additions and 9 deletions
+1
View File
@@ -109,6 +109,7 @@ class GithubApp(github.GithubObject.CompletableGithubObject):
"""
:type: string
"""
self._completeIfNotSet(self._slug)
return self._slug.value
@property