1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-27 22:42:39 +01:00
Commit graph

9 commits

Author SHA1 Message Date
Brennen Bearnes
c4f54692b0 add CodeReviewBot PHID
CodeReviewBot is intended for use with GitLab-Phabricator integrations.
Has a generic name in case we want to use it with tools other than GitLab
at any point.

For https://phabricator.wikimedia.org/T330923

Bug: T330923

# Subject: summary of your change
# * "If applied, this commit will..."
# * Imperative mood: Change/Add/Fix/Remove/Update/Refactor/Document
# * Optionally, prefix with subject / component (general area modified)
# * https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines#Subject

# Body:
# * Why? What's wrong with status quo? Are there other ways?
# * How to test/confirm?
# * https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines#Body

# Bug: TXXXXXX
#
# Other fields:
# ~/code/bpb-kit/home/cheatsheets/git-meta.txt
2023-05-08 16:51:10 -06:00
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