git - Automatically Fetch Branch, Run Script, and Push to Other Branch -
i automatically copy develop
branch second branch, let's call clean
, whenever update first branch develop
. new , changed .py
files in clean
branch processed script autopep8 , pushed.
i figured maybe use github's webhooks listen events on specific branch, not sure how deploy script.
is this right way approach problem or there easier way automatize style-based cleaning version? goal keep dirty version commented-out code , custom quirks, while delivering clean version - tested separately.
“i choose lazy person hard job. because lazy person find easy way it.” —bill gates
you using webhooks , github api, feel using git hooks might more efficient way of approaching problem. issue doing way required add hook new clone of repo, hooks not shared between clones.
Comments
Post a Comment