Semi-automated bot for migrating on-wiki JavaScript.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
test
.eslintrc.yml
.gitignore
.travis.yml
README.md
package.json

README.md

Build Status

mw-tool-tourbot

Usage

screen shot

screen shot

screen shot

Quick start

Install the npm package:

npm install -g mw-tool-tourbot

To start the interactive process, run the tourbot program. Pass parameters like tourbot --file path/to/results.txt.

Options

  • --file FILE: File that contains a list of pages to process. Default: results.txt
  • --all: Enable interactive mode for all page names, even without matches.
  • --contains TEXT: Limit the all iteration to pages that currently contain the given text.
  • --match TEXT: Similar to the contains parameter, but interpreted as a regular expression.
  • --auto: Enable remembering of decisions and re-apply them automatically to similar diffs. Default: off.
  • --quick-skip: Skip files with script errors without an interactive prompt. Default: off.
  • --help: Show the help page, instead of running the tourbot.

Example

The input file must contain pairs of (wiki dbname, page name) in the same format as used by mwgrep.

Public results.

$ curl -O -L 'https://gist.githubusercontent.com/Krinkle/a18e726fc3af30f30bf9b2ba919820b5/raw/b32b7c3fd646f0ef3f1ba865f1c342d23195c5f5/mwgrep.mwCustomEditButtons.txt -a -c 'mwCustomEditButtons'

$ tourbot -f mwgrep.mwCustomEditButtons.txt

 Reading /Users/krinkle/Downloads/mwgrep.mwCustomEditButtons.txt

 [..]

Development

Install from Git:

git clone https://github.com/Krinkle/mw-tool-tourbot.git

Manually run npm install. To start the interactive process, run ./bin/tourbot.js. Pass parameters like ./bin/tourbot.js -- --file path/to/results.txt.

Alternatively, run npm link to create a global symlink for tourbot.

See also