pywikibot.ItemPage.mergeInto() calls pywikibot.DataSite.mergeItems() which does not allow marking this edit as done by bot (see also T87103).
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
pywikibot.DataSite.mergeItems must set the bot flag | pywikibot/core | master | +5 -2 |
Related Objects
Related Objects
- Mentioned In
- T87103: wbcreateredirect should act upon the 'bot' param
- Mentioned Here
- T87103: wbcreateredirect should act upon the 'bot' param
Event Timeline
Comment Actions
The mergeInto allows bot=True since it pass all kwargs to mergeItems regardless.
def mergeInto(self, item, **kwargs): """ Merge the item into another item. @param item: The item to merge into @type item: pywikibot.ItemPage """ self.repo.mergeItems(fromItem=self, toItem=item, **kwargs)
Comment Actions
Change 301776 had a related patch set uploaded (by Dachary):
pywikibot.DataSite.mergeItems must set the bot flag
Comment Actions
Maybe pywikibot.ItemPage.mergeInto should also have an explicit bot=True argument so that the default is to set the bot flag ?
Comment Actions
Change 301776 merged by jenkins-bot:
pywikibot.DataSite.mergeItems must set the bot flag