Skip to content

Commit 7c30d6a

Browse files
committed
fix
1 parent af87119 commit 7c30d6a

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/breaking-changes.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ jobs:
77
breaking-changes-manifest:
88
name: Generate Breaking Changes Manifest
99
runs-on: ubuntu-latest
10-
outputs:
11-
breaking-changes: ${{ steps.breakvalidator.outputs.JSON }}
1210
steps:
1311
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1412
with:
@@ -24,7 +22,6 @@ jobs:
2422
- name: Install dependencies
2523
run: go mod download
2624
- name: Run breaking changes validator
27-
id: breakvalidator
2825
run: |
2926
set -e
3027
go run ./tools/cmd/breakvalidator generate > main.json
@@ -51,7 +48,6 @@ jobs:
5148
uses: actions/download-artifact@v4
5249
with:
5350
name: breaking-changes-manifest
54-
path: main.json
5551
- name: Run breaking changes validator
5652
run: |
5753
set -e

tools/cmd/breakvalidator/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ import (
2121
)
2222

2323
type flagData struct {
24-
Type string `json:"type"`
25-
Default string `json:"default"`
26-
Short string `json:"short"`
24+
Type string `json:"type,omitempty"`
25+
Default string `json:"default,omitempty"`
26+
Short string `json:"short,omitempty"`
2727
}
2828

2929
type cmdData struct {
30-
Aliases []string `json:"aliases"`
31-
Flags map[string]flagData `json:"flags"`
30+
Aliases []string `json:"aliases,omitempty"`
31+
Flags map[string]flagData `json:"flags,omitempty"`
3232
}
3333

3434
func buildRootCmd() *cobra.Command {

0 commit comments

Comments
 (0)