statamic / ideas

đŸ’¡Discussions on ideas and feature requests for Statamic
https://statamic.dev
30 stars 1 forks source link

Add push option to git automation #1113

Open jhhazelaar opened 5 months ago

jhhazelaar commented 5 months ago

Hi đŸ‘‹,

We are looking for an option to trigger an PR/MR with the necessary pipeline/actions from a push to the repo. Gitlab has push options todo so: https://docs.gitlab.com/ee/user/project/push_options.html. Don't know if GitHub supports push options.

Is it an idea to implement push options to the Git Automation process?

Was thinking about a configuration with an key/value array with the options that is parsed to the push command here: https://github.com/statamic/cms/blob/4.x/src/Console/Processes/Git.php#L49C23-L49C36

Official git documentation of push options: https://git-scm.com/docs/git-push#Documentation/git-push.txt--oltoptiongt