jenkins-bot has submitted this change and it was merged.
Change subject: pywikibot.DataSite.mergeItems must set the bot flag ......................................................................
pywikibot.DataSite.mergeItems must set the bot flag
As for other similar actions, the bot flag must be set by default.
Bug: T138287 Change-Id: Ie57064e77baca596b54cda8308cdd66fb4c67329 --- M pywikibot/site.py 1 file changed, 5 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index f8c6996..4b7969b 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -7372,7 +7372,7 @@ @must_be(group='user') @deprecated_args(ignoreconflicts='ignore_conflicts') def mergeItems(self, fromItem, toItem, ignore_conflicts=False, - summary=None): + summary=None, bot=True): """ Merge two items together.
@@ -7384,6 +7384,8 @@ @type ignore_conflicts: bool @param summary: Edit summary @type summary: str + @param bot: Whether to mark the edit as a bot edit + @type bot: bool @return: dict API output @rtype: dict """ @@ -7395,7 +7397,8 @@ 'token': self.tokens['edit'], 'summary': summary, } - + if bot: + params['bot'] = 1 req = self._simple_request(**params) data = req.submit() return data
pywikibot-commits@lists.wikimedia.org