[IMP] runbot_merge: staging logging

The log message only indicated whether the PR was squashed or not, but
that's not actually useful.

Improve the message to log the actual merge method, for
information. The old "squash" (aka squash flag set and no merge
method, since an actual squash merge method was reintroduced a while
ago) has been renamed to "single" for the purpose of this display.
This commit is contained in:
Xavier Morel 2022-06-29 11:11:59 +02:00
parent e8ae5ec263
commit 2b3ee48ebd

View File

@ -2026,8 +2026,9 @@ class Batch(models.Model):
gh = meta[pr.repository]['gh']
_logger.info(
"Staging pr %s for target %s; squash=%s",
pr.display_name, pr.target.name, pr.squash
"Staging pr %s for target %s; method=%s",
pr.display_name, pr.target.name,
pr.merge_method or (pr.squash and 'single') or None
)
target = 'tmp.{}'.format(pr.target.name)