ben-gibson/GitLink

{commit} placeholder gets replaced with short hash for commit link

gavvvr opened this issue · 0 comments

gavvvr commented

There is a short hash substituted in place of {commit} for "commit template" URL

How to reproduce?

  1. Open any git repo cloned from remote
  2. Go to Settings -> GitLink -> Custom Platform -> Press "+"
  3. Fill in all required fields with any data
  4. Fill in "Commit template" with {remote:url}/commit/{commit}
  5. Finish Custom Platform creation
  6. Go to Settings -> GitLink -> choose the "platform" you've just created -> Apply settings
  7. Go to "Git Log" -> Right-click any commit and choose "Open in %YOUR_CUSTOM_PLATFORM_NAME%"

The link you will get will actually have a {commit:short} value in place of commit hash