Skip to content

Commit

Permalink
format the markdown file
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani authored and Pantani committed Mar 1, 2024
1 parent ba21ba9 commit ee3ff49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 4 additions & 2 deletions ignite/internal/tools/gen-mig-diffs/pkg/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ func FormatDiffs(diffs Diffs) ([]byte, error) {
buffer := &bytes.Buffer{}
for name, diffs := range diffs {
buffer.WriteString(fmt.Sprintf("#### **%s diff**\n\n", xstrings.ToUpperFirst(name)))
for _, d := range diffs {
for i, d := range diffs {
buffer.WriteString(fmt.Sprint(d))
buffer.WriteString("\n\n")
if i < len(diffs)-1 {
buffer.WriteString("\n\n")
}
}
}
return buffer.Bytes(), nil
Expand Down
3 changes: 1 addition & 2 deletions ignite/internal/tools/gen-mig-diffs/pkg/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ Commit: %[2]v
Author: %[3]v
Date: %[4]v
%[5]v
`,
%[5]v`,
g.To.Original(),
tagObj.Hash.String(),
tagObj.Tagger.String(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ description: <%= ShortDescription %>
## **<%= ToVersion %>**

<%= Description %>

### **Chain migration diffs**

<%= Diffs %>

### **Details**

- **The CLI tools automatically generated this file**;
Expand Down

0 comments on commit ee3ff49

Please sign in to comment.