Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’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](

that make the following template (see shortHash and fullHash):

* feat(): add changelog page ([<shortHash>](<fullHash>))

Is it possible to achieve this need?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:28 (25 by maintainers)

github_iconTop GitHub Comments

huguangjucommented, Dec 3, 2015

+1. I need fullHash also in my gitlab server, because use shortHash can’t access the commits url.

mrt181commented, Nov 10, 2021

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

-  {{~@root.commit}}/{{hash}}))
+  {{~@root.commit}}/{{raw.hash}}))

This uses the full hash in the link and the short hash in the link preview

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found