splewis / get5

CS:GO Sourcemod plugin for competitive matches/scrims
GNU General Public License v3.0
557 stars 174 forks source link

Format and commit code on push to master branch #860

Closed PhlexPlexico closed 2 years ago

PhlexPlexico commented 2 years ago

This PR is to just ensure we have correct formatting whenever we do a full release. This little bit of automation here is done so that other users who wish to contribute don't have to have clang-format installed, and if regular contributors forget to run formatting, it will be caught and updated downstream. This is what the commit message, and author will look like once it has been completed (if any formatting needs to be done)

image

I've taken the "Run Autoformatter" message from previous times when splewis has run the autoformatter on the main branch, so I figured it is a good enough message to show intent.

Will mark ready when 0.10 is released.

PhlexPlexico commented 2 years ago

Decided to update the commit message a tiny bit to give a bit more of a descriptive reason as to why the action would run and commit something to master.