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

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.

Licensing note

By inserting this header, you (and by extension, any collaborators you have on the Git repository) must agree to release all (past, current, and future) revisions of the file as colicensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA) and the GNU Free Documentation License (GFDL), or otherwise with a license fully specified and compatible as per WP:C.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.