Skip to content

add this tool to https://gadget-deploy.toolforge.org/ (requires some deploy script changes) #101

@NovemLinguae

Description

@NovemLinguae

Why

Deploys are a headache whenever working on a complex MediaWiki gadget that is based on GitHub. Anything we can do to simplify deploys is good. Simple deploys mean the onwiki gadget is less likely to get out of sync, and it means that merged patches can be deployed fast, easily, and with a minimum amount of specialized knowledge.

What

add this gadget to https://gadget-deploy.toolforge.org/, which is a three-click gadget GitHub-to-wiki deploy tool for interface administrators.

This can be done by following the directions at https://github.com/wikimedia-gadgets/gadget-deploy?tab=readme-ov-file#how-to-configure-a-gadget-for-deployment. Copying from those directions...

  • "Create deployment script for the gadget. Ideally, use node.js. It should read the API url of the wiki and an OAuth 2 access token from a JSON file and use them to do the deployment. Format of the credentials file generated by this tool is:" - We have a working deploy script (npm run deploy). Sounds like we just need to modify it to accept site and accessToken from a credentials file.
  • Raise a PR to add an entry in gadget-conf.ts
  • Clone the gadget's git repo on the Toolforge project - Novem or SD0001 needs to do

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions