Skip to content

Commit

Permalink
chore: update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Jun 6, 2023
1 parent 1034c3e commit 757551c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions internal/types/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ import (

// ActionInput represents the input of the action.yml
type ActionInput struct {
Description string `yaml:"description"`
Required bool `yaml:"required"`
Default string `yaml:"default,omitempty"`
Description string `yaml:"description"`
Required bool `yaml:"required"`
Default string `yaml:"default,omitempty"`
DeprecationMessage string `yaml:"deprecationMessage,omitempty"`
}

Expand Down Expand Up @@ -191,7 +191,7 @@ func renderActionInputTableOutput(inputs map[string]ActionInput, inputColumns []
switch col {
case "Input":
if inputs[key].DeprecationMessage != "" {
row = append(row, fmt.Sprintf("~~%s~~ <br> **%s**", key, inputs[key].DeprecationMessage))
row = append(row, fmt.Sprintf("~~%s~~ <br> %s", key, inputs[key].DeprecationMessage))
} else {
row = append(row, key)
}
Expand Down
10 changes: 5 additions & 5 deletions internal/types/reusable.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ import (

// ReusableInput represents the input of the reusable workflow
type ReusableInput struct {
Description string `yaml:"description"`
Required bool `yaml:"required"`
Default string `yaml:"default,omitempty"`
Type string `yaml:"type"`
Description string `yaml:"description"`
Required bool `yaml:"required"`
Default string `yaml:"default,omitempty"`
Type string `yaml:"type"`
DeprecationMessage string `yaml:"deprecationMessage,omitempty"`
}

Expand Down Expand Up @@ -228,7 +228,7 @@ func renderReusableInputTableOutput(inputs map[string]ReusableInput, inputColumn
switch col {
case "Input":
if inputs[key].DeprecationMessage != "" {
row = append(row, fmt.Sprintf("~~%s~~ <br> **%s**", key, inputs[key].DeprecationMessage))
row = append(row, fmt.Sprintf("~~%s~~ <br> %s", key, inputs[key].DeprecationMessage))
} else {
row = append(row, key)
}
Expand Down

0 comments on commit 757551c

Please sign in to comment.