1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-08 13:12:38 +01:00
Commit graph

8 commits

Author SHA1 Message Date
Ahmon Dancy
ae3f603e50 patchforreview_remover.py: Handle bot comments for Gitlab status updates
Handle change status report for both Gerrit and Gitlab.

Bug: T325297
2023-01-19 15:27:31 -08:00
Ahmon Dancy
10c6aace45 Fix gerrit_patch_id regexp
Change the gerrit_patch_id regexp from
r'https://gerrit(?:-test|)\.wikimedia\.org/r/.*(\d+)(?:$|\]\])'
to
r'https://gerrit(?:-test|)\.wikimedia\.org/r/(\d+)(?:$|\]\])'

The .* in the old regexp was collecting most of the digits expected to
be matched by the (\d+).  For example if the input was
https://gerrit.wikimedia.org/r/875932, the collected digits would just
be "2".
2023-01-19 10:57:12 -08:00
Ahmon Dancy
9b64c4b501 Added some comments 2023-01-19 10:54:18 -08:00
Amir Sarabadani
2cbe8ea3af Fix checking for abandoned patches for removing #patch-for-review
The formatting has changed.

Bug: T276390
2021-03-12 10:50:20 +01:00
Amir Sarabadani
b72da2b58f Make patchforreview not remove tag if there's a link to a github PR
Not any link to github. This would help a lot in cleaning up with better
precision.
2020-09-29 15:03:19 +02:00
Amir Sarabadani
dbb3ee2c40 Fix the regex for patch-for-review comment checker
After upgrading gerrit, this broke as the URL schema changed.
2020-07-01 23:06:01 +02:00
Amir Sarabadani
3793beb87d Fix the permissions 2019-11-26 12:38:01 +01:00
Amir Sarabadani
73098f3ff1 Initial commit 2019-11-22 22:19:59 +01:00