github2gerrit 0.1.5__py3-none-any.whl → 0.1.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: github2gerrit
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Submit a GitHub pull request to a Gerrit repository.
5
5
  Author-email: Matthew Watkins <mwatkins@linuxfoundation.org>
6
6
  License-Expression: Apache-2.0
@@ -105,16 +105,25 @@ stabilize coverage reporting for parallel/xdist runs.
105
105
 
106
106
  ## Duplicate detection
107
107
 
108
- By default, the tool checks for duplicate changes to prevent spam
109
- submissions from automated tools like Dependabot. It compares PR titles,
110
- content, and files changed against recent PRs (last 7 days) and will
111
- exit with an error when it finds duplicates.
108
+ Duplicate detection uses a scoring-based approach. Instead of relying on a hash
109
+ added by this action, the detector compares the first line of the commit message
110
+ (subject/PR title), analyzes the body text and the set of files changed, and
111
+ computes a similarity score. When the score meets or exceeds a configurable
112
+ threshold (default 0.8), the tool treats the change as a duplicate and blocks
113
+ submission. This approach aims to remain robust even when similar changes
114
+ appeared outside this pipeline.
112
115
 
113
116
  ### Examples of detected duplicates
114
117
 
115
- - Identical Dependabot PRs: "Bump package from 1.0 to 1.1"
116
- - Sequential dependency updates: "Bump package 1.01.1", "Bump package 1.11.2"
117
- - Similar bug fixes with slightly different wording
118
+ - Dependency bumps for the same package across close versions
119
+ (e.g., "Bump foo from 1.0 to 1.1" vs "Bump foo from 1.1 to 1.2")
120
+ with overlapping files high score
121
+ - Pre-commit autoupdates that change .pre-commit-config.yaml and hook versions —
122
+ high score
123
+ - GitHub Actions version bumps that update .github/workflows/* uses lines —
124
+ medium to high score
125
+ - Similar bug fixes with the same subject and significant file overlap —
126
+ strong match
118
127
 
119
128
  ### Allowing duplicates
120
129
 
@@ -290,19 +299,7 @@ jobs:
290
299
  submit-to-gerrit:
291
300
  runs-on: ubuntu-latest
292
301
  steps:
293
- - name: Install SSH key and custom SSH config
294
- <!-- markdownlint-disable-next-line MD013 -->
295
- uses: shimataro/ssh-key-action@d4fffb50872869abe2d9a9098a6d9c5aa7d16be4 # v2.7.0
296
- with:
297
- key: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}
298
- name: "id_rsa"
299
- known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
300
- config: |
301
- Host ${{ vars.GERRIT_SERVER }}
302
- User ${{ vars.GERRIT_SSH_USER_G2G }}
303
- Port ${{ vars.GERRIT_SERVER_PORT }}
304
- PubkeyAcceptedKeyTypes +ssh-rsa
305
- IdentityFile ~/.ssh/id_rsa
302
+
306
303
 
307
304
  - name: Submit PR to Gerrit (with explicit overrides)
308
305
  id: g2g
@@ -336,10 +333,10 @@ jobs:
336
333
 
337
334
  Notes:
338
335
 
339
- - If both this step and the action define SSH configuration, the last
340
- configuration applied in the runner wins.
341
- - For most users, you can rely on the action’s built-in SSH setup. Use this
342
- advanced configuration when you need custom SSH behavior or hosts.
336
+ - The action configures SSH internally using the provided inputs (key,
337
+ known_hosts) and does not use the runner’s SSH agent or ~/.ssh/config.
338
+ - Do not add external steps to install SSH keys or edit SSH config; they’re
339
+ unnecessary and may conflict with the action.
343
340
 
344
341
  ## GitHub Enterprise support
345
342
 
@@ -0,0 +1,17 @@
1
+ github2gerrit/__init__.py,sha256=N1Vj1HJ28LKCJLAynQdm5jFGQQAz9YSMzZhEfvbBgow,886
2
+ github2gerrit/cli.py,sha256=86Xvjk9xsSN76ewXjBbA0yWIncnkyIy3VFb2pUN7HAM,34637
3
+ github2gerrit/config.py,sha256=sTiujlOjCsJbaA-Ftr5XR--9nxs7XH8uEWD-IbGqLYk,17370
4
+ github2gerrit/core.py,sha256=Tg1Qxg7tvGCxAfC0cSFnkexeN2JVIVkv0zqvov1S-RY,79296
5
+ github2gerrit/duplicate_detection.py,sha256=ODPzCm6Gv5NZsxkPm1vy4CBsWQ7hIhD7U95TiXWwcts,29986
6
+ github2gerrit/gerrit_urls.py,sha256=A-bi6JbicnqR5WAg-cLpWzDQczkWMoahCVqNl21wARo,8395
7
+ github2gerrit/github_api.py,sha256=nteSZjMiFP64pUJc9tqtvUgiaGlKtaH62zJWfGbR19I,10528
8
+ github2gerrit/gitutils.py,sha256=4-UXLX3L_nUJbXbcYx1FvpikUdsr5BwnnlI-GwbeXu0,19410
9
+ github2gerrit/models.py,sha256=-iBFJXyWEW1mFNn_wkkHjMenxoKB5SNNzJHhZ2IkxFA,1827
10
+ github2gerrit/similarity.py,sha256=gcz9wSK6xZjff0MD_VNHLpxJUWH7Z0ZAYT25t46qpgY,15228
11
+ github2gerrit/ssh_discovery.py,sha256=XSV01p2nMMKBbTWAAmrWr-VMDdBZMxcMt5Nu04pDdH4,12825
12
+ github2gerrit-0.1.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
+ github2gerrit-0.1.6.dist-info/METADATA,sha256=QNKgaz_XAC42GVQuNaHoZYTOia2ncvlDaOHatXaarsY,21471
14
+ github2gerrit-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ github2gerrit-0.1.6.dist-info/entry_points.txt,sha256=MxN2_liIKo3-xJwtAulAeS5GcOS6JS96nvwOQIkP3W8,56
16
+ github2gerrit-0.1.6.dist-info/top_level.txt,sha256=bWTYXjvuu4sSU90KLT1JlnjD7xV_iXZ-vKoulpjLTy8,14
17
+ github2gerrit-0.1.6.dist-info/RECORD,,
@@ -1,15 +0,0 @@
1
- github2gerrit/__init__.py,sha256=N1Vj1HJ28LKCJLAynQdm5jFGQQAz9YSMzZhEfvbBgow,886
2
- github2gerrit/cli.py,sha256=30hvpwZCs-xeWfP6TJmcluebmPVU88AUUNprd0Szt-8,34043
3
- github2gerrit/config.py,sha256=4RmAyRFs1CxeGlAjbCaVW63EqEnBt5Vag0jTTMzfKyU,16948
4
- github2gerrit/core.py,sha256=HKgSmh792sbdTV_vuNLos-eaYgj3W0F0H72N7KBV6IA,75175
5
- github2gerrit/duplicate_detection.py,sha256=J6a8t3ih-ebr6FEhWsaKnXYPQCzwcnFEWhdstmtjnMo,19475
6
- github2gerrit/github_api.py,sha256=G_VRvIzpugDeNRyw1y-KGQQ_wvDRl-L6UCqP8BRh-gU,10697
7
- github2gerrit/gitutils.py,sha256=8Q94BCLC924zIG2kcCSzxkajTpUamQ3Ul07OqzEv9ic,18664
8
- github2gerrit/models.py,sha256=DAm0pEWvAexOInnxTVrvTnKWhLMd86TfSqT78UohOCo,1791
9
- github2gerrit/ssh_discovery.py,sha256=xildpri60eQZtnXJuRxcEEb-q71h6D8QUiQvp2P9LlU,13300
10
- github2gerrit-0.1.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
- github2gerrit-0.1.5.dist-info/METADATA,sha256=5rLt8uNLd0FLcNGqNncQbM7cYm3Ns_cDECz385lqwpk,21545
12
- github2gerrit-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
- github2gerrit-0.1.5.dist-info/entry_points.txt,sha256=MxN2_liIKo3-xJwtAulAeS5GcOS6JS96nvwOQIkP3W8,56
14
- github2gerrit-0.1.5.dist-info/top_level.txt,sha256=bWTYXjvuu4sSU90KLT1JlnjD7xV_iXZ-vKoulpjLTy8,14
15
- github2gerrit-0.1.5.dist-info/RECORD,,