You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The end result would be something like Created example.md via Gollum or Gollum - Updated example.md
The commit_prefix and/or commit_suffix options could be configuration items in the config.rb file.
Use case would be to identify commits made by Gollum for reasons such as automatic git pushes of commits by Gollum when in a shared location and for better audit logging. This can be done manually on each file save or a custom template but it would be nice to have a default behavior for it.
The text was updated successfully, but these errors were encountered:
I think this is an interesting idea and I'd welcome any pull requests adding this.
I think instead of a prefix and suffix we should make the whole "created" and "updated" strings configurable, with support for a short list of variables like page_name and format. This would make the feature more valuable to people who don't speak English or prefer another language and want to keep their git history in their preferred language.
Here is what I think the configuration could look like (pseudo code):
config.default_created_commit_message = "Somebody created {{page_name}} {{format}}"
config.default_updated_commit_message = "{{page_name}} has been updated {{format}} haha example text"
Current behavior
Reference template
When files are edited with Gollum, a commit is created. By default, the commit messages are:
"Created {{page_name}} ({{format}})"
"Updated {{page_name}} ({{format}})"
Requested behavior
I would like to be able to add in either a prefix or suffix to the default commit message.
Example:
"{{commit_prefix}} Created {{page_name}} ({{format}}) {{commit_suffix}}"
"{{commit_prefix}} Updated {{page_name}} ({{format}}) {{commit_suffix}}"
The end result would be something like
Created example.md via Gollum
orGollum - Updated example.md
The commit_prefix and/or commit_suffix options could be configuration items in the
config.rb
file.Use case would be to identify commits made by Gollum for reasons such as automatic git pushes of commits by Gollum when in a shared location and for better audit logging. This can be done manually on each file save or a custom template but it would be nice to have a default behavior for it.
The text was updated successfully, but these errors were encountered: