Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Demo] Slash command code formatting - Python #28

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

retepsnave
Copy link

@retepsnave retepsnave commented Feb 25, 2020

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

/black

The demo can be reset with this command.

/reset-demo

Feel free to try it out! 💬

@peter-evans peter-evans added the demo This issue or pull request is for demonstration purposes label Feb 25, 2020
@peter-evans
Copy link
Owner

/black

@peter-evans
Copy link
Owner

/reset-demo

@tushar5526
Copy link

/black

@jenn4
Copy link

jenn4 commented Jun 15, 2020

/black

@jenn4
Copy link

jenn4 commented Jun 15, 2020

/reset-demo

@superarts
Copy link

/reset-demo

@superarts
Copy link

/black

@patrickjahns
Copy link

/reset-demo

@peter-evans
Copy link
Owner

/reset-demo

@arifsetyawan
Copy link

/reset-demo

@qbantek
Copy link

qbantek commented Aug 23, 2021

/ping

@qbantek
Copy link

qbantek commented Aug 23, 2021

/black

@qbantek
Copy link

qbantek commented Aug 23, 2021

/reset-demo

@chosh31
Copy link

chosh31 commented Nov 9, 2021

/black

@daniel-vaskivaara
Copy link

/black

@jakemongaya
Copy link

/black

2 similar comments
@kevnm67
Copy link

kevnm67 commented Mar 16, 2023

/black

@larsbuntemeyer
Copy link

/black

@larsbuntemeyer
Copy link

/reset-demo

@vidhya03
Copy link

vidhya03 commented Jan 31, 2024

/black

1 similar comment
@vidhya03
Copy link

/black

@vidhya03
Copy link

/black

@vidhya03
Copy link

vidhya03 commented Jan 31, 2024

/help

Command Description
/hello-world Commit a greeting from the world to hello-world.txt
/black Format Python using Black
/reset-demo Reset the code formatting demo

@StephenWeatherford
Copy link

/blck

@StephenWeatherford
Copy link

/black

@StephenWeatherford
Copy link

StephenWeatherford commented Feb 10, 2024

/help

Command Description
/hello-world Commit a greeting from the world to hello-world.txt
/black Format Python using Black
/reset-demo Reset the code formatting demo

@StephenWeatherford
Copy link

/reset-demo

@atin-tandon-mm
Copy link

atin-tandon-mm commented Apr 1, 2024

/help

Command Description
/hello-world Commit a greeting from the world to hello-world.txt
/black Format Python using Black
/reset-demo Reset the code formatting demo

@Zaid-maker
Copy link

/black

@shellymiron
Copy link

/hello-world

@gertzgal
Copy link

/black

@gertzgal
Copy link

gertzgal commented Jun 26, 2024

/help

Command Description
/hello-world Commit a greeting from the world to hello-world.txt
/black Format Python using Black
/reset-demo Reset the code formatting demo

@Zaid-maker
Copy link

/reset-demo

@fernandoaleman
Copy link

fernandoaleman commented Oct 4, 2024

/help

Command Description
/hello-world Commit a greeting from the world to hello-world.txt
/black Format Python using Black
/reset-demo Reset the code formatting demo

@amanjain-cb
Copy link

/reset-demo

@amanjain-cb
Copy link

/black

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo This issue or pull request is for demonstration purposes
Projects
None yet
Development

Successfully merging this pull request may close these issues.