grunt-phantomas icon indicating copy to clipboard operation
grunt-phantomas copied to clipboard

Dynamic Label: link to git/svn by executed result

Open raDiesle opened this issue 9 years ago • 5 comments

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

raDiesle avatar Jul 29 '14 09:07 raDiesle

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?

stefanjudis avatar Jul 29 '14 09:07 stefanjudis

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.

raDiesle avatar Jul 29 '14 12:07 raDiesle

Hmm I'm not sure how to implement this with a nice config option.

Any suggestions? :bowtie:

stefanjudis avatar Jul 29 '14 12:07 stefanjudis

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:

  1. 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.

raDiesle avatar Jul 29 '14 13:07 raDiesle

Don't get it. can you explain a bit more in detail?

stefanjudis avatar Jul 29 '14 14:07 stefanjudis