-
Notifications
You must be signed in to change notification settings - Fork 56
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
Make the Git commit message configurable #815
base: develop
Are you sure you want to change the base?
Conversation
Not against this approach, would think we would do this with constance config that supports jinja syntax. What do you think @jeffkala |
I have the "constance config" approach semi-working in a Git stash, if we eventually decide to go there. The use case that I'm working on though (ITSM pre/post integration) requires the form field anyways and having both seemed a bit over-engineered. Certainly up to discuss this. |
The general configuration sprawl is what I'm concerned about. We have:
Adding what I consider as a "configuration switch" to the job input form seems like yet another options. I'm fine with constance, I'd also consider having it in golden config settings in a field similar to the j2 supported path to backup/intended files |
I understand your point of view even though I personally see this more like a job execution thing, not unsimilar to selecting devices. The scenario I have in mind is a Backup prior to changing say DNS for a thousand devices. In this case, a commit message like "Change Request 1234 - before DNS change" would make way more sense than "BACKUP 2024-10-10", at least in my head. Let me know what you think! |
Looks like the ask @nkallergis is truly a custom / on-demand commit message. If that is the case I think using Constance or GC settings isn't going to accomplish what is asked. With that being the case I'd vote for the job input as long as it continues to have a default and its not required |
commit_message
field on theBackup
,Intended
, andExecute All Golden Configuration Jobs
variants that allows the operator to define the Git commit message to be used..
ensure_git_repository
function, the GCgc_repo_push
function has been modified to log the Git repository HEAD hash after commits.Closes #814.