Skip to main content
A screenshot showing how to trigger a patchflow using a webhook.

From the Patched Dashboard

  1. Click the ‘Patch’ button next to the repository you’d like to patch.
  2. In the pop-up modal, choose the patchflow you’d like to run. You can learn more about the patchflows here.
  3. Fill in the patchflow specific input values as needed, and click ‘Patch’.
  4. If the patch was triggered successfully, you should see a toast notificaton on the bottom right.

Using Patchwork CLI

  1. Install the Patchwork CLI by running pip install patchwork-cli.
  2. Navigate to the root folder of the code repository you want to patch.
  3. Run patchwork <NameOfPatchflow>. The default patchflows are AutoFix,GenerateREADME,GenerateDocstring and PRReview. You can learn more about the patchflows here.
Make sure you set the PATCHED_API_KEY environment variable with your API key before running the Patchwork CLI.

Using GitHub Actions

You can also trigger patchflows from Github actions. The simplest way to do it is to run the Patchwork CLI as a step within your job. For example, to trigger the PRReview patchflow on every pull request that is made to the main branch you can use something like this:
GitHub Action

Using Gitlab CI

You can also trigger patchflows from Gitlab CI. The simplest way to do it is to run the Patchwork CLI as a step within your Gitlab CI yaml file. For example, to trigger a review patchflow on every merge request that is made to the master branch you can use the script below:
Gitlab CI

Using Webhooks

Coming Soon