Skip to content

Commit

Permalink
Change: Allow to import all GitHub model instances from main module
Browse files Browse the repository at this point in the history
Allow to import all necessary GitHub models and enums from
`pontos.github.models`.
  • Loading branch information
bjoernricks committed Dec 28, 2022
1 parent d3442ce commit 34cedcc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions pontos/github/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
from pontos.github.models.organization import *
from pontos.github.models.pull_request import *
from pontos.github.models.release import *
from pontos.github.models.tag import *
from pontos.github.models.workflow import *
6 changes: 5 additions & 1 deletion pontos/github/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@

__all__ = (
"App",
"Event",
"GitHubModel",
"User",
"Permission",
"Team",
"TeamPrivacy",
"TeamRole",
"User",
)


Expand Down
1 change: 1 addition & 0 deletions pontos/github/models/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"Organization",
"Repository",
"RepositoryType",
"SecurityAndAnalysisStatus",
"SquashMergeCommitMessage",
"SquashMergeCommitTitle",
)
Expand Down

0 comments on commit 34cedcc

Please sign in to comment.