grunt-phantomas
grunt-phantomas copied to clipboard
Dynamic Label: link to git/svn by executed result
as we run phantomas in our Continuous Integration process, we want to know about the revision.
For this, it would be very helpful to pass e.g. a http address, which, in our case would be not the date, but the revision number, so that people can click on it and see the code in e.g. an online revision system.
This is wrongly posted,too on : https://github.com/macbre/phantomas/issues/372
Do I get you correct:
You want functionality to add custom links to the UI? We could solve this in a generic way to avoid similar future tickets?
So it is exactly about : mouse hovering over one dot time of the chart => showing Link/Information not only about date/time, but also about the revision with a link to some github for example.
Hmm I'm not sure how to implement this with a nice config option.
Any suggestions? :bowtie:
Probably there is a cleaner solution, but an easy would be :
Assuming that phantomas results are not checked in ( or in a different repository) but source are:
-
Store last 100 hashs e.g. with grunt shell in some custom variable git hist
grunt-phantomas option callback for string/array-string returning the full url/urls of the current related commits. Map them in a separate data file and match all commits from last known hash commit until the latest. Show them on mouseover of the dot in chart.
Don't get it. can you explain a bit more in detail?