This patch adds experimental feedback to each merged git branch. Upon
initiation of the merge, a comment is added to let the user know that
pmr is actively looking at merge request.
Following that, preparations are made (clones/fetches) and if they fail
an error is logged (but nothing is mentioned in the merge request yet as
the issue may be temporary).
Next a merge is attempted, if it fails an appropriate comment is added
and (with the vote of 'needs fixing') and the whole proposal is reverted
from approved to needs reviewed.
If the merge works, tests are started (optionally). Again if they fail
an appropriate comment is added and the merge proposal is updated.
Finally we try to push the branch, if that fails we just fail silently
as the whole process will begin again and this might be a transient
failure.
Signed-off-by: Zygmunt Krynicki <email address hidden>
With this patch, logging is really only displayed (by default) when
something interesting is happening. This makes it possible to observe
merges as they happen, without having to scroll back to find them.
Signed-off-by: Zygmunt Krynicki <email address hidden>
This patch makes the tool run forever, looping over all the projects
every minute. In addition, it now uses authenticated access as it will
sign-in as the user of the current machine. This makes it suitable to
process merge requests from a private project. The loop makes deployment
easier though there are still unsolved issues that prevent this from
really running as a service.
Signed-off-by: Zygmunt Krynicki <email address hidden>
This patch removes an earlier kludge that is no longer necessary.
Launchpad now exposes dedicated properties for read-write and read-only
URLs. We use those to figure out what to do.
Signed-off-by: Zygmunt Krynicki <email address hidden>