github2gerrit 0.1.11__py3-none-any.whl → 0.1.12__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.
@@ -20,7 +20,6 @@ from collections.abc import Iterable
20
20
  from datetime import UTC
21
21
  from datetime import datetime
22
22
  from datetime import timedelta
23
- from pathlib import Path
24
23
  from typing import Any
25
24
 
26
25
  from .gerrit_urls import create_gerrit_url_builder
@@ -205,20 +204,11 @@ class DuplicateDetector:
205
204
  if gerrit_host and gerrit_project:
206
205
  return (gerrit_host, gerrit_project)
207
206
 
208
- # Try to read .gitreview file locally first
209
- gitreview_path = Path(".gitreview")
210
- if gitreview_path.exists():
211
- try:
212
- text = gitreview_path.read_text(encoding="utf-8")
213
- host = self._match_first_group(r"(?m)^host=(.+)$", text)
214
- proj = self._match_first_group(r"(?m)^project=(.+)$", text)
215
- if host and proj:
216
- project = proj.removesuffix(".git")
217
- return (host.strip(), project.strip())
218
- if host and not proj:
219
- return (host.strip(), "")
220
- except Exception as exc:
221
- log.debug("Failed to read local .gitreview: %s", exc)
207
+ # Skip local .gitreview check in composite action context
208
+ # The duplicate detection runs before workspace setup, so there's no
209
+ # reliable local .gitreview file to check. Instead, rely on environment
210
+ # variables or remote fetching.
211
+ log.debug("Skipping local .gitreview check (composite action context)")
222
212
 
223
213
  # Try to fetch .gitreview remotely (simplified version of core logic)
224
214
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: github2gerrit
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary: Submit a GitHub pull request to a Gerrit repository.
5
5
  Project-URL: Homepage, https://github.com/lfreleng-actions/github2gerrit
6
6
  Project-URL: Repository, https://github.com/lfreleng-actions/github2gerrit
@@ -3,7 +3,7 @@ github2gerrit/cli.py,sha256=iI-e229TOuDKEA9NJ7mDTLr96aJDuRnEnCOXJ4l645k,65285
3
3
  github2gerrit/commit_normalization.py,sha256=5HqUJ7p3WQzUYNTkganIsu82aW1wZrh7J7ivQvdCYXw,17033
4
4
  github2gerrit/config.py,sha256=khuXAfmOc2wqO4r1Cpp8PYk04AO-JpmnJvSWQZ3fdL8,22315
5
5
  github2gerrit/core.py,sha256=bu65-_fJ53Nd2P9FeYt0iIeAEI8t3Yd6db8J1ZAQCLk,147167
6
- github2gerrit/duplicate_detection.py,sha256=FaYtftmABdNofdZIi-kfgI4DlWvfvDS87gLj7hx0Jvo,29152
6
+ github2gerrit/duplicate_detection.py,sha256=HSL1IpyfPk0yLkzCKA8mWadYB3qENR6Ar3AfiH59lCI,28766
7
7
  github2gerrit/external_api.py,sha256=9483kkgIs1ECOl_f0lcGb8GrJQF9IfYmWfBQwUJT9hk,18480
8
8
  github2gerrit/gerrit_query.py,sha256=7AR9UEwZxtTb9V-l17UDdtWvlvROlnIeJVMa57ilf6s,8343
9
9
  github2gerrit/gerrit_rest.py,sha256=Yv1a0vqEuP1dvx16AB6BKSOb01o3FfOxEVzRzTND6gE,11009
@@ -24,8 +24,8 @@ github2gerrit/trailers.py,sha256=9w0vIxPNBNQp56sIy-MF62d22Rm6vY-msh9ao1lX0rQ,838
24
24
  github2gerrit/utils.py,sha256=1CKTsQo_FO3eyVjzNUT3XyFnyObIxyEFLeSmVKzavVo,3397
25
25
  github2gerrit/orchestrator/__init__.py,sha256=HAEcdCAHOFr8LsdIwAdcIcFZn_ayMbX9rdVUULp8410,864
26
26
  github2gerrit/orchestrator/reconciliation.py,sha256=qLhmjnIblSa_PVmBblWJ1gSvJ6Gto2AIVOVdYvT6zbk,18364
27
- github2gerrit-0.1.11.dist-info/METADATA,sha256=7sk9TSOqHuH00NaJQl3Sv6zUv66ZAr17BZZFb9Rn3iw,33833
28
- github2gerrit-0.1.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
- github2gerrit-0.1.11.dist-info/entry_points.txt,sha256=MxN2_liIKo3-xJwtAulAeS5GcOS6JS96nvwOQIkP3W8,56
30
- github2gerrit-0.1.11.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
- github2gerrit-0.1.11.dist-info/RECORD,,
27
+ github2gerrit-0.1.12.dist-info/METADATA,sha256=gbgmX-PMXkTv8CIr54kLgZ5sNYYamceXR-HpmcXwbGQ,33833
28
+ github2gerrit-0.1.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
+ github2gerrit-0.1.12.dist-info/entry_points.txt,sha256=MxN2_liIKo3-xJwtAulAeS5GcOS6JS96nvwOQIkP3W8,56
30
+ github2gerrit-0.1.12.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
+ github2gerrit-0.1.12.dist-info/RECORD,,