-
-
Notifications
You must be signed in to change notification settings - Fork 60
Support managing a GitHub App's JWT in GitHubAPI #201
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
base: main
Are you sure you want to change the base?
Changes from all commits
f7a46ac
895d452
799a2ad
4d2ec3f
057bba7
8d50bf7
3873188
f340849
50fd864
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,14 @@ | ||
| """Support for GitHub Actions.""" | ||
| from typing import cast, Any, Dict | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from typing import cast, Any, Dict, TYPE_CHECKING | ||
|
|
||
| import time | ||
| import jwt | ||
|
|
||
| from gidgethub.abc import GitHubAPI | ||
| if TYPE_CHECKING: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This perhaps should be done as a separate PR.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure I can do that. Let me know and I'll set up another PR that can be merged before this one. The |
||
| from gidgethub.abc import GitHubAPI | ||
|
|
||
|
|
||
| def get_jwt(*, app_id: str, private_key: str) -> str: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,3 +45,6 @@ branch = true | |
|
|
||
| [tool.coverage.report] | ||
| fail_under = 100 | ||
| exclude_lines = [ | ||
| "if TYPE_CHECKING:" | ||
| ] | ||
Uh oh!
There was an error while loading. Please reload this page.