add a commit timestamp to the hook

Issue #33 resolved
Former user created an issue

Hi ,

Is it possible to add a ${refChange.timeStamp} of the last commit for the branch? We want to send this information to other system using the hook for processing the commit.

Thank you, Bharat

Comments (8)

  1. Alexander Renteln

    Not making any promises... but I have a long weekend coming up... so hopefully I will get to some coding and have some results soon :-)

  2. Alexander Renteln

    Hey, the following will be available with the next release... which I will hopefully be releasing this evening or tomorrow :-)

      "refChange.latest.timeStamp.unix" -> "1495882225000"
      "refChange.latest.authorTimeStamp.unix" -> "1495882225000"
      "refChange.latest.commitTimeStamp.unix" -> "1495882225000"
    
      "refChange.latest.timeStamp.rfc" -> "Sat, 27 May 2017 12:50:25 +0200"
      "refChange.latest.authorTimeStamp.rfc" -> "Sat, 27 May 2017 12:50:25 +0200"
      "refChange.latest.commitTimeStamp.rfc" -> "Sat, 27 May 2017 12:50:25 +0200"
    
      "refChange.latest.timeStamp.iso" -> "2017-05-27T12:50:25+02:00"
      "refChange.latest.authorTimeStamp.iso" -> "2017-05-27T12:50:25+02:00"
      "refChange.latest.commitTimeStamp.iso" -> "2017-05-27T12:50:25+02:00"
    

    Best, Alex

  3. Log in to comment