Skip to content

Commit 7867501

Browse files
authored
Merge pull request #14 from jhrozek/tags
Add json tags to the Action struct
2 parents 8f6b150 + 07990fa commit 7867501

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/ghactions/ghactions.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ func ModifyReferencesInYAML(ctx context.Context, ghcli *github.Client, node *yam
136136

137137
// Action represents an action reference.
138138
type Action struct {
139-
Action string
140-
Owner string
141-
Repo string
142-
Ref string
139+
Action string `json:"action"`
140+
Owner string `json:"owner"`
141+
Repo string `json:"repo"`
142+
Ref string `json:"ref"`
143143
}
144144

145145
// ListActionsInYAML returns a list of actions referenced in the given YAML structure.

0 commit comments

Comments
 (0)