diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-07-10 13:24:54 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-07-10 13:24:54 +0200 |
commit | 02b3627b8ad86186ce90fa1cb0cd59066ee5d51c (patch) | |
tree | 3af8b27822feaeef201f07398e14f44f7988708a /skate | |
parent | 11eb477e73ccda3e84e46c53324c46ded0b4a840 (diff) | |
download | refcat-02b3627b8ad86186ce90fa1cb0cd59066ee5d51c.tar.gz refcat-02b3627b8ad86186ce90fa1cb0cd59066ee5d51c.zip |
reduce: add key and indexed ts for exact matches
Diffstat (limited to 'skate')
-rw-r--r-- | skate/reduce.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/skate/reduce.go b/skate/reduce.go index d2ce820..f44f6df 100644 --- a/skate/reduce.go +++ b/skate/reduce.go @@ -65,6 +65,8 @@ func ZippyExact(releases, refs io.Reader, matchResult MatchResult, w io.Writer) continue } bref.Reset() + bref.Key = fmt.Sprintf("%s_%d", ref.ReleaseIdent, ref.Index+1) + bref.IndexedTs = time.Now().UTC().Format(time.RFC3339) bref.SourceReleaseIdent = ref.ReleaseIdent bref.SourceWorkIdent = ref.WorkIdent bref.SourceReleaseStage = ref.ReleaseStage |