alexkvak / teamcity-slack

TeamCity Slack plugin
MIT License
124 stars 23 forks source link

Show commit hash or short commit hash in changes #76

Open wuservices opened 4 years ago

wuservices commented 4 years ago

I was wondering if it was possible to customize the output or content of {changes}. It'd be great if we could show the commit hash or short commit hash for each change and customize what's shown for each one.

Here's an example from https://github.com/PeteGoo/tcSlackBuildNotifier: 68747470733a2f2f7261772e6769746875622e636f6d2f70657465676f6f2f7463536c61636b4275696c644e6f7469666965722f6d61737465722f646f63732f6275696c642d7374617475735f706173732e706e67

alexkvak commented 4 years ago

Sorry for delay. What is your use case? I guess commit hash without link to repo is useless. Isn't it?

wuservices commented 4 years ago

The use case is knowing exactly what was deployed or built and also being able to quickly find that in version control e.g. in Git or on GitHub or Bitbucket. This is especially important if 2 commits have the same name, which is likely to happen if there have been force pushes lately.

It'd be even more convenient if you could add a link to the hash that goes to the URL of your choice (e.g. to go to GitHub or Bitbucket), but the use case is still the same.