Go to file
Xavier Morel 8e67aed792 [IMP] runbot_merge: limit spamming on PR close
When closing a PR, github completely separates the events "close the
PR" and "comment on the PR" (even when using "comment and close" in
the UI, a feature which isn't even available in the API). It doesn't
aggregate the notifications either, so users following the PR for
one reason or another get 2 notifications / mails every time a PR
gets merged, which is a lot of traffic, even more so with
forward-ported PRs multiplying the amount of PRs users are involved
in.

The comment on top of the closure itself is useful though: it allows
tracking exactly where and how the PR was merged from the PR, this
information should not be lost.

While more involved than a simple comment, *deployments* seem like
a suitable solution: they allow providing links as permanent
information / metadata on the PRs, and apparently don't trigger
notifications to users.

Therefore, modify the "close" method so it doesn't do
"comment-and-close", and provide a way to close PRs with non-comment
feedback: when the feedback's message is structured (parsable as
json) assume it's intended as deployment-bound notifications.

TODO: maybe add more keys to the feedback event payload, though in my
      tests (odoo/runbot#222) none of the deployment metadata
      outside of "environment" and "target_url" is listed on the PR
      UI

Fixes #224
2019-11-21 08:10:39 +01:00
forwardport [IMP] runbot_merge: limit spamming on PR close 2019-11-21 08:10:39 +01:00
runbot [FIX] runbot: grep for enhanced test-tag for auto_tags 2019-11-19 14:54:16 +01:00
runbot_cla [FIX] runbot: fix coverage since shared sources 2019-07-16 12:06:09 +02:00
runbot_merge [IMP] runbot_merge: limit spamming on PR close 2019-11-21 08:10:39 +01:00
.gitignore [IMP] runbot: share sources between builds 2019-07-12 14:50:59 +02:00
conftest.py [ADD] forwardport: automatic branch deleter 2019-10-17 11:55:20 +02:00
README.md [REF] README: update the readme file for the brand new repo 2018-03-08 16:59:39 +01:00

Odoo Runbot Repository

This repository contains the source code of Odoo testing bot runbot.odoo.com and related addons.

Runbot

The runbot/ directory holds the main runbot Odoo addon.

Runbot CLA addon

The runbot_cla/ directory contains an Odoo addon that checks CLA.