[Demo] Slash command code formatting - Python by retepsnave · Pull Request #28 · peter-evans/slash-command-dispatch

Slash command code formatting - Python

Slash commands can be used to execute code formatting tools on pull request branches.
The slash commands are dispatched to slash-command-dispatch-processor repository to be processed by workflows here.

The code formatting workflow does the following:

  1. Check out the pull request branch
  2. Execute the code formatting tool
  3. Commit the changes to the pull request branch
  4. Add a 🎉 reaction to the comment containing the slash command

The following command formats Python using Black

The demo can be reset with this command.

Feel free to try it out! 💬