Skip to content

Commit

Permalink
Merge pull request #416 from kubernetes-sigs/feature-change-dates-and…
Browse files Browse the repository at this point in the history
…-link-release

Change Date & add links for releases
  • Loading branch information
jberkus authored Aug 14, 2024
2 parents 2273807 + 9a4a232 commit 09a5ada
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/release-crawler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ func main() {

var mdContent string
var htmlContent string
htmlContent += "<h1>Latest Releases for " + oneWeekAgo.Format("2006-01-02") + "</h1>"
mdContent += "# Latest Releases for " + oneWeekAgo.Format("2006-01-02") + " \n"
htmlContent += "<h1>Latest Releases for the week " + oneWeekAgo.Format("2006-01-02") + " - " + now.Format("2006-01-02") + "</h1>"
mdContent += "# Latest Releases for the week " + oneWeekAgo.Format("2006-01-02") + " - " + now.Format("2006-01-02") + " \n"

weekfile := oneWeekAgo.Format("2006-01-02")
weekfile := now.Format("2006-01-02")

for p, rs := range repos {
for _, r := range rs {
Expand All @@ -185,6 +185,7 @@ func main() {
htmlContent += "<h4>" + release.GetPublishedAt().Format("2006-01-02") + "</h4>"

mdContent += "### Release notes for " + release.GetName() + " \n"
mdContent += "#### [" + r + " " + release.GetTagName() + "](" + release.GetHTMLURL() + ") \n"
mdContent += "#### " + release.GetPublishedAt().Format("2006-01-02") + " \n"

content := []byte(release.GetBody())
Expand Down

0 comments on commit 09a5ada

Please sign in to comment.