Wikipedia:USync
USync is a functionality of DeadbeefBot II that syncs external Git repositories to Wikipedia .js pages. The task approval page provides additional details.
Usage
[edit]There must be an existing page to start syncing. The bot will not create new pages for you.
1) To start syncing, first add the following line, with the correct information to the first line of your user script onwiki:
// {{Wikipedia:USync|repo=<>|ref=<>|path=<>}}
As an example:
// {{Wikipedia:USync |repo=https://github.com/fee1-dead/cplus |ref=refs/heads/production |path=main.js}}
2) Then add the same line via a commit to your GitHub repository.
3) Next, add a webhook to your repository as set in the repo parameter. Go to "Settings", "Webhooks", then click "Add webhook". Paste https://deadbeefbot-two.toolforge.org/webhook as the Payload URL and set Content type to application/json. Leave the rest fields to their defaults (just the push event) and add the webhook.
If all of the above are configured correctly, you should now be able to push to the ref (branch) and the bot will then edit the file to change the contents based on the Git update.