27 Commits

Author SHA1 Message Date
Jimmy Berry
e308bd6139 check_maintenance_incidencts: utilize _is_patchinfo().
Pulled out as function in 9a418f780f2c09caaf22c1430b93b1895909bd80, but
not used in maintenance bot.
2018-06-28 10:52:47 -05:00
Jimmy Berry
f98a78c1ae Remove Vim config in favor of EditorConfig. 2018-01-23 00:48:00 -06:00
Ludwig Nussel
312c18024d Don't die on delete requests
Perform src_project checks only on actions that actually have a
src_project
2017-11-09 14:55:07 +01:00
Ludwig Nussel
52dbf107a7 maintbot: no maintainer review for SLE15 submissions 2017-10-02 16:09:43 +02:00
Jimmy Berry
078ec68697 ReviewBot: add_review(): provide allow_duplicate parameter and default of False.
Also update calls based on default behavior change. As described in the
comment above add_review() there seems to be no reason to ever add a
duplicate review.

The check in leaper would skip unless state == declined. In such a case
the review would automatically be reopened along with the request so that
logic is unnecessary.
2017-08-15 22:18:53 -05:00
Jimmy Berry
ef93709e16 ReviewBot: add_review(): raise exception instead of returning boolean.
This ensures that calling bots crash rather than continue which can cause
non-atomic state changes that miss reviews when OBS crashes or is
unavailable.
2017-08-15 21:43:02 -05:00
Jimmy Berry
12b84757a2 check_source: add devel review for delete request using MaintenanceChecker logic. 2017-07-27 19:31:46 -05:00
Jimmy Berry
7c6f67979a core: extract maintainers_get(), owner_fallback() from MaintenanceChecker.
Allows the code to be properly shared between checkrepo and
check_maintenance_incidents as a todo suggests. Given that the majority of
similar cases for code sharing are extension of osc.core it seems to make
sense to place them in osclib.core.
2017-07-12 15:31:30 -05:00
Jimmy Berry
4813734ab0 MaintenanceChecker: include project in owner query to utilize local devel.
For Leap the devel project may override the Factory one.
2017-04-26 17:12:49 -05:00
Jimmy Berry
a1cb4aa772 MaintenanceChecker: utilize osc.core.owner(). 2017-04-26 16:01:47 -05:00
Jimmy Berry
7431af4a72 Rework ReviewBot.CommandLineInterface to provide class option. (#622)
Alleviates the need for a lot of duplicate code, some of which is already
out-of-sync.
2017-01-02 09:34:13 +01:00
Andreas Stieger
f5d47c3ded Improve message for multiple maintainer reviews 2016-12-02 13:39:52 +01:00
Ludwig Nussel
6202edd27c Don't require maintainer ack for Maintenance submissions 2016-10-17 11:35:21 +02:00
Ludwig Nussel
b79d40321c Fix review of dropped packages
Avoid adding e.g. openSUSE:13.2 as reviewer. OBS sometimes returns
projects of released openSUSE distributions as maintainer for packages
that were dropped from Factory.
2016-10-14 14:29:35 +02:00
Ludwig Nussel
c29e28d27c Don't check patchinfo files 2016-06-17 11:00:06 +02:00
Ludwig Nussel
d35e73d595 Introduce the Leap bot
Combination of factory source checker and maintainer check
2016-06-07 15:11:26 +02:00
Ludwig Nussel
0c18a67112 add factory source checker for all of Backports 2016-05-30 16:22:04 +02:00
Ludwig Nussel
a66047058d skip maintainer review for sle based packages
fixes bsc#956051
2015-11-23 16:47:03 +01:00
Ludwig Nussel
2aefe3bac0 don't add factory-source multiple times 2015-10-05 10:50:01 +02:00
Ludwig Nussel
2e0b8debda remove unused variable 2015-09-30 11:41:36 +02:00
Ludwig Nussel
7253a060c4 avoid adding double reviews if review is by project 2015-09-29 09:51:23 +02:00
Ludwig Nussel
a334773cab implement checking submit requests 2015-09-29 08:44:30 +02:00
Ludwig Nussel
54d272c2e2 handle maintainer groups
some packages like wicked are maintained by a group so expand user names on groups
2015-02-19 17:24:51 +01:00
Ludwig Nussel
307d4eba59 handle packages without maintainer
if no maintainer is found, add devel project/package as reviewer
2015-02-19 17:20:27 +01:00
Ludwig Nussel
cfd6641f82 rename CPE -> Backports 2015-02-04 16:43:56 +01:00
Ludwig Nussel
a2cf55aaff fix double review, add testcase
closes #278
2015-01-26 11:42:00 +01:00
Ludwig Nussel
a590787e33 new review bots factory-source and maintbot
factory-source checks if submissions contain sources already accepted in
Factory. maintbot makes sure maintenance submissions are authored by the
Factory package maintainer.

Both are based on a new generic ReviewBot.py class that can serve as
common framework for review bots.
2014-11-25 14:36:22 +01:00