python-github-plus 1.0.0__py3-none-any.whl → 1.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_github_plus/consts.py +1 -0
- python_github_plus/github_plus.py +9 -7
- {python_github_plus-1.0.0.dist-info → python_github_plus-1.1.1.dist-info}/METADATA +2 -2
- python_github_plus-1.1.1.dist-info/RECORD +8 -0
- {python_github_plus-1.0.0.dist-info → python_github_plus-1.1.1.dist-info}/WHEEL +1 -1
- python_github_plus-1.0.0.dist-info/RECORD +0 -7
- {python_github_plus-1.0.0.dist-info → python_github_plus-1.1.1.dist-info}/licenses/LICENSE +0 -0
- {python_github_plus-1.0.0.dist-info → python_github_plus-1.1.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
LOGGER_NAME = "python_github_plus"
|
|
@@ -15,6 +15,8 @@ from github.Tag import Tag
|
|
|
15
15
|
from github.Workflow import Workflow
|
|
16
16
|
from github.WorkflowRun import WorkflowRun
|
|
17
17
|
|
|
18
|
+
from python_github_plus.consts import LOGGER_NAME
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
class GitHubPRStatus(Enum):
|
|
20
22
|
OPEN = "open"
|
|
@@ -30,7 +32,7 @@ class GitHubWorkflowStatus(Enum):
|
|
|
30
32
|
|
|
31
33
|
class GitHubProjectService:
|
|
32
34
|
def __init__(self, repo: Repository) -> None:
|
|
33
|
-
self.logger = get_logger(
|
|
35
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
34
36
|
self.repo = repo
|
|
35
37
|
|
|
36
38
|
def get_info(self) -> Repository:
|
|
@@ -56,7 +58,7 @@ class GitHubProjectService:
|
|
|
56
58
|
|
|
57
59
|
class GitHubWorkflowService:
|
|
58
60
|
def __init__(self, repo: Repository) -> None:
|
|
59
|
-
self.logger = get_logger(
|
|
61
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
60
62
|
self.repo = repo
|
|
61
63
|
|
|
62
64
|
def list(self) -> list[Workflow]:
|
|
@@ -120,7 +122,7 @@ class GitHubWorkflowService:
|
|
|
120
122
|
|
|
121
123
|
class GitHubBranchService:
|
|
122
124
|
def __init__(self, repo: Repository) -> None:
|
|
123
|
-
self.logger = get_logger(
|
|
125
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
124
126
|
self.repo = repo
|
|
125
127
|
|
|
126
128
|
def create(self, branch_name: str, from_branch: str) -> GitRef:
|
|
@@ -168,7 +170,7 @@ class GitHubBranchService:
|
|
|
168
170
|
|
|
169
171
|
class GitHubTagService:
|
|
170
172
|
def __init__(self, repo: Repository) -> None:
|
|
171
|
-
self.logger = get_logger(
|
|
173
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
172
174
|
self.repo = repo
|
|
173
175
|
|
|
174
176
|
def create_from_sha(self, tag_name: str, sha: str, message: str | None = None) -> GitTag:
|
|
@@ -193,7 +195,7 @@ class GitHubTagService:
|
|
|
193
195
|
|
|
194
196
|
class GitHubPRService:
|
|
195
197
|
def __init__(self, repo: Repository) -> None:
|
|
196
|
-
self.logger = get_logger(
|
|
198
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
197
199
|
self.repo = repo
|
|
198
200
|
|
|
199
201
|
def get_info(self, number: int) -> PullRequest:
|
|
@@ -243,7 +245,7 @@ class GitHubPRService:
|
|
|
243
245
|
|
|
244
246
|
class GitHubFileService:
|
|
245
247
|
def __init__(self, repo: Repository) -> None:
|
|
246
|
-
self.logger = get_logger(
|
|
248
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
247
249
|
self.repo = repo
|
|
248
250
|
|
|
249
251
|
def get(self, path: str, ref: str = "main") -> ContentFile:
|
|
@@ -275,7 +277,7 @@ class GitHubFileService:
|
|
|
275
277
|
|
|
276
278
|
class GitHubClient:
|
|
277
279
|
def __init__(self, repo_full_name: str, access_token: str | None = None) -> None:
|
|
278
|
-
self.logger = get_logger(
|
|
280
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
279
281
|
self.github_access_token = access_token or os.environ.get("GITHUB_ACCESS_TOKEN")
|
|
280
282
|
|
|
281
283
|
self.github = Github(auth=Auth.Token(self.github_access_token))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-github-plus
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: Enhanced Python GitHub client.
|
|
5
5
|
Author: Avi Zaguri
|
|
6
6
|
License: MIT
|
|
@@ -16,7 +16,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
16
16
|
Requires-Python: >=3.12
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: custom-python-logger>=
|
|
19
|
+
Requires-Dist: custom-python-logger>=4.0.0
|
|
20
20
|
Requires-Dist: pre-commit>=4.5.0
|
|
21
21
|
Requires-Dist: pygithub>=2.8.1
|
|
22
22
|
Requires-Dist: pytest>=9.0.1
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
python_github_plus/__init__.py,sha256=X9i7u5Or-dmMMWc2R9Vq982MjK-BGpPbvSs3yL7i_ew,211
|
|
2
|
+
python_github_plus/consts.py,sha256=SvRLMrYP-bH7ywxU-9YUPDNjMdcP2FUBtzVLigEJZBM,35
|
|
3
|
+
python_github_plus/github_plus.py,sha256=x9dzJFLSlcPQGRcwJRn3zRozIno3VD1mknVvWCO1dIg,12096
|
|
4
|
+
python_github_plus-1.1.1.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
|
|
5
|
+
python_github_plus-1.1.1.dist-info/METADATA,sha256=LG2mEuN5ak4zTLXttyvvOY4gcCyKnoKZmt_bbZS6BYE,7311
|
|
6
|
+
python_github_plus-1.1.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
7
|
+
python_github_plus-1.1.1.dist-info/top_level.txt,sha256=lm_rQAamcpxcN00h3Thamd05_z5PdTfy-RVSuCpN_xA,19
|
|
8
|
+
python_github_plus-1.1.1.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
python_github_plus/__init__.py,sha256=X9i7u5Or-dmMMWc2R9Vq982MjK-BGpPbvSs3yL7i_ew,211
|
|
2
|
-
python_github_plus/github_plus.py,sha256=-01qHZSq76JZJOq_LKL63aRjN9JIWzJb--xJDv0dkbQ,12129
|
|
3
|
-
python_github_plus-1.0.0.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
|
|
4
|
-
python_github_plus-1.0.0.dist-info/METADATA,sha256=VcM1LCo4j_Jgxnb-qxNpa4CDWEYYY0yWluZBSE_2UBs,7312
|
|
5
|
-
python_github_plus-1.0.0.dist-info/WHEEL,sha256=YLJXdYXQ2FQ0Uqn2J-6iEIC-3iOey8lH3xCtvFLkd8Q,91
|
|
6
|
-
python_github_plus-1.0.0.dist-info/top_level.txt,sha256=lm_rQAamcpxcN00h3Thamd05_z5PdTfy-RVSuCpN_xA,19
|
|
7
|
-
python_github_plus-1.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|