snodo-provider-github 0.20.3__tar.gz → 0.23.2__tar.gz
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.
- {snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/PKG-INFO +2 -2
- {snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/pyproject.toml +2 -2
- {snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/src/snodo_provider_github/__init__.py +8 -0
- {snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/src/snodo_provider_github.egg-info/PKG-INFO +2 -2
- snodo_provider_github-0.23.2/src/snodo_provider_github.egg-info/requires.txt +2 -0
- snodo_provider_github-0.20.3/src/snodo_provider_github.egg-info/requires.txt +0 -2
- {snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/setup.cfg +0 -0
- {snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/src/snodo_provider_github.egg-info/SOURCES.txt +0 -0
- {snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/src/snodo_provider_github.egg-info/dependency_links.txt +0 -0
- {snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/src/snodo_provider_github.egg-info/entry_points.txt +0 -0
- {snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/src/snodo_provider_github.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snodo-provider-github
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.23.2
|
|
4
4
|
Summary: GitHub code-host provider plugin for Snodo
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
|
-
Requires-Dist: snodo-tools==0.
|
|
6
|
+
Requires-Dist: snodo-tools==0.23.2
|
|
7
7
|
Requires-Dist: PyGithub>=2.0.0
|
|
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "snodo-provider-github"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.23.2"
|
|
8
8
|
description = "GitHub code-host provider plugin for Snodo"
|
|
9
9
|
requires-python = ">=3.12"
|
|
10
|
-
dependencies = ["snodo-tools==0.
|
|
10
|
+
dependencies = ["snodo-tools==0.23.2", "PyGithub>=2.0.0"]
|
|
11
11
|
|
|
12
12
|
[project.entry-points."snodo.providers"]
|
|
13
13
|
github = "snodo_provider_github:GitHubProvider"
|
{snodo_provider_github-0.20.3 → snodo_provider_github-0.23.2}/src/snodo_provider_github/__init__.py
RENAMED
|
@@ -103,6 +103,14 @@ class GitHubProvider(CodeHostProvider):
|
|
|
103
103
|
except Exception as exc:
|
|
104
104
|
raise ProviderError(f"Failed to read PR diff: {exc}") from exc
|
|
105
105
|
|
|
106
|
+
def resolve_change_request_refs(self, change_request_id: str) -> tuple[str, str]:
|
|
107
|
+
"""Return GitHub PR base and head commit SHAs for local git validation."""
|
|
108
|
+
try:
|
|
109
|
+
pr = self._repo.get_pull(int(change_request_id))
|
|
110
|
+
return pr.base.sha, pr.head.sha
|
|
111
|
+
except Exception as exc:
|
|
112
|
+
raise ProviderError(f"Failed to resolve PR refs: {exc}") from exc
|
|
113
|
+
|
|
106
114
|
def post_change_request_comment(self, change_request_id: str, comment: str) -> str:
|
|
107
115
|
try:
|
|
108
116
|
return self._repo.get_pull(int(change_request_id)).create_issue_comment(comment).html_url
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snodo-provider-github
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.23.2
|
|
4
4
|
Summary: GitHub code-host provider plugin for Snodo
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
|
-
Requires-Dist: snodo-tools==0.
|
|
6
|
+
Requires-Dist: snodo-tools==0.23.2
|
|
7
7
|
Requires-Dist: PyGithub>=2.0.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|