doc: report project metadata update time (#286)

This commit is contained in:
Michael McLoughlin
2022-05-08 17:34:16 -07:00
committed by GitHub
parent bdaad2bb98
commit 88c126385a
5 changed files with 43 additions and 14 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"flag"
"testing"
"time"
"github.com/mmcloughlin/avo/internal/github"
"github.com/mmcloughlin/avo/internal/test"
@@ -50,6 +51,10 @@ func TestSuiteFileMetadata(t *testing.T) {
}
}
if *update {
s.MetadataLastUpdate = time.Now().UTC()
}
if err := StoreSuiteFile("suite.json", s); err != nil {
t.Fatal(err)
}