summaryrefslogtreecommitdiffstats
path: root/git-hooks/gerrit-bot-extras
Commit message (Collapse)AuthorAgeFilesLines
* rewrite watch handlingOswald Buddenhagen2017-06-121-20/+12
| | | | | | | | | | fundamentally change how the data is queried from git. this has some marginal unnecessary cost for the case where no applicable watches are actually present, but the code is clearer this way. Change-Id: I0a89401a9f199b69da7471ca551178f5d89b8a4f Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* separate fixup check from w-i-p checkOswald Buddenhagen2017-06-121-1/+4
| | | | | | | | it doesn't really make sense to claim wip for a neglected squash. Change-Id: I30245ff57142bebbdd2e29ff4160ccb7c427392e Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* factor out watches and w-i-p handling to separate workerOswald Buddenhagen2017-06-121-0/+108
originally, the idea was to have one gerrit-bot instance per worker, but that would result in an (even greater) flood of comments. so all functionality that didn't fit into sanitize-commit was added to gerrit-bot. at this time it's getting messy, so clean it up by making it a plain launcher/dispatcher again, with the ability to run multiple workers on a single commit. Change-Id: I8c04f449726793b99e9f1ac5c6db330a1f17389f Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>