use full hash
See original GitHub issueI’m using conventional-changelog to write a changelog in markdown.
I’m also using writer-opts to change the generated url for each commit. My forge is using the full hash in the url to reference each commit.
I managed to alter the url, but I really need the full hash to generate the url.
Note that I would still need the truncated hash (7 chars) so that the visible label of the link is not too long, but the full hash would be used in the url.
Here is an example of a generated url:
* feat(): add changelog page ([d11e82b](https://www.myforge.org/plugins/git/owner/project?p=project.git&a=commit&h=d11e82b))
that make the following template (see shortHash
and fullHash
):
* feat(): add changelog page ([<shortHash>](https://www.myforge.org/plugins/git/owner/project?p=project.git&a=commit&h=<fullHash>))
Is it possible to achieve this need?
Issue Analytics
- State:
- Created 8 years ago
- Comments:28 (25 by maintainers)
Top Results From Across the Web
How to get complete git commit hash from short hash?
I want to get a complete hash from remote server. I tried getting the branch name from the commit hash and then getting...
Read more >What is hashing and how does it work? - TechTarget
Hashing uses functions or algorithms to map object data to a representative integer value. A hash can then be used to narrow down...
Read more >hash-function-transition Documentation - Git
The use of a hash function to address its content delivers a few advantages: ... trust the hash to address the signed object...
Read more >Advantages of using intermediate hash over full hash in digital ...
Intermediate (or partial) hashes are canonical forms of digest state that can be transferred from one hash implementation to another, so that ...
Read more >Configuring hash settings - IBM
For a full hash, leave Entire data object content (required for data object typing) selected. IBM StoredIQ uses Oracle Outside In Technology filters...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1. I need
fullHash
also in my gitlab server, because useshortHash
can’t access the commits url.If you are not using any preset it defaults to
conventional-changelog-writer
.This one does not have any
writer-opts.js
.The easiest way for me to get a full hash in this case was to change this line in the commit.hbs template
This uses the full hash in the link and the short hash in the link preview