Jump to content

User:SDZeroBot/Gadget sync

From Wikipedia, the free encyclopedia

Gadgets sync is a bot task to keep enwiki pages in sync with pages from a remote source. The intended use case is for gadgets, although it can handle other kinds of pages as well.

BRFA: Wikipedia:Bots/Requests for approval/SDZeroBot 13.

Configuration

[edit]

Configuration is located at User:SDZeroBot/Gadgets-sync-config.json.

Each config setting specifies a source, page and talkPage. Every hour, SDZeroBot check if source has diverged from page. If so, it raises an edit request on the talkPage to reconcile them. The bot is also triggered whenever you edit the config page.

Only source is required to exist. The edit request will be raised even if page doesn't yet exist.

Supported remote sources:

  • Any website on the interwiki map - specify source like in an interwiki link, eg. mw:MediaWiki:WikiMiniAtlas.js.
    • This includes Wikimedia Gitlab. Set source to the raw path, eg. gitlab:sd/wp-scripts/-/raw/main/package.json.
    • Syncing from toolforge-hosted pages is supported, but not recommended as it makes the history and attribution of the remote page unclear.
  • GitHub - use this format: github:{org}/{project}/{branch}/{path}