Skip to content

Commit

Permalink
Add last update section
Browse files Browse the repository at this point in the history
  • Loading branch information
awcodify committed Mar 12, 2024
1 parent 47edc1d commit 58305dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"sort"
"strings"
"sync"
"time"

"github.com/google/go-github/v38/github"
"golang.org/x/oauth2"
Expand Down Expand Up @@ -229,6 +230,7 @@ func generateMarkdown(stats map[string]int, totalSize int, mostProductiveDay str
lines = append(lines, "```")
lines = append(lines, "\n📅 Most Productive Day: "+mostProductiveDay)
lines = append(lines, "\n⌚️ Most Productive Hour: "+mostProductiveHour)
lines = append(lines, "\n _Last update: "+fmt.Sprint(time.Now().Format("2006-01-02 15:04:05")+"_"))
lines = append(lines, "<!--END_SECTION:GitInsights-->")

return strings.Join(lines, "\n")
Expand Down

0 comments on commit 58305dd

Please sign in to comment.