Allow gitGraph commit.id to be set
See original GitHub issueIs your feature request related to a problem? Please describe. I am always pushing for people to move from SVN or other types of no-versioning-systems to git. To do this a graphic representation does wonders. Mermaid is in a form that makes lends itself to a somewhat
Describe the solution you’d like I’d like to be able to set the id for git commits to a given string. This way I could use mermaid to render a git graph for repositories actually in use with the actual commit messages or short-SHA’s.
gitGraph:
options
{
"nodeSpacing": 150,
"nodeRadius": 10
}
end
commit["Initial Commit"]
branch newbranch
checkout newbranch
commit["added things on newbranch"]
commit["could also be an actual commit SHA"]
checkout master
commit
commit
merge newbranch
Describe alternatives you’ve considered GitX and the git cli, which are not integrated with display solutions like Grafana.
Additional context The endgame would be to use a decent git graph and then color it’s branches according to it’s build/test status to provide a great overview for CI/CD. This would be done in using the mermaid diagram plugin for Grafana and feeding it a gitGraph generated on changes via hooks.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:5
Top GitHub Comments
I would also love a way to set the hashes myself and not let them be randomly generated every refresh.
The newer version of GitGraph solves this