Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Mar 12, 2024
1 parent c7e970f commit 3ea8398
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions action_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,61 @@ func (inputs *ActionMetadataOutputs) UnmarshalYAML(n *yaml.Node) error {
return nil
}

// TODO

Check failure on line 93 in action_metadata.go

View workflow job for this annotation

GitHub Actions / Lint

comment on exported type ActionMetadataRunnerKind should be of the form "ActionMetadataRunnerKind ..." (with optional leading article) (ST1021)
type ActionMetadataRunnerKind uint8

const (
// TODO
ActionMetadataRunnerKindJS ActionMetadataRunnerKind = iota
// TODO
ActionMetadataRunnerKindComposite
// TODO
ActionMetadataRunnerKindDocker
)

func (k ActionMetadataRunnerKind) String() string {
switch k {
case ActionMetadataRunnerKindJS:
return "JavaScript"
case ActionMetadataRunnerKindComposite:
return "Composite"
case ActionMetadataRunnerKindDocker:
return "Docker"
default:
panic(fmt.Sprintf("Unknown kind: %d", k))
}
}

// TODO

Check failure on line 118 in action_metadata.go

View workflow job for this annotation

GitHub Actions / Lint

comment on exported type ActionRunnerMetadata should be of the form "ActionRunnerMetadata ..." (with optional leading article) (ST1021)
type ActionRunnerMetadata interface {
// TODO
Kind() ActionMetadataRunnerKind
}

// TODO

Check failure on line 124 in action_metadata.go

View workflow job for this annotation

GitHub Actions / Lint

comment on exported type ActionRunnerJS should be of the form "ActionRunnerJS ..." (with optional leading article) (ST1021)
type ActionRunnerJS struct{}

// Kind implements ActionRunnerMetadata interface
func (r *ActionRunnerJS) Kind() ActionMetadataRunnerKind {
return ActionMetadataRunnerKindJS
}

// TODO

Check failure on line 132 in action_metadata.go

View workflow job for this annotation

GitHub Actions / Lint

comment on exported type ActionRunnerComposite should be of the form "ActionRunnerComposite ..." (with optional leading article) (ST1021)
type ActionRunnerComposite struct{}

// Kind implements ActionRunnerMetadata interface
func (r *ActionRunnerComposite) Kind() ActionMetadataRunnerKind {
return ActionMetadataRunnerKindComposite
}

// TODO

Check failure on line 140 in action_metadata.go

View workflow job for this annotation

GitHub Actions / Lint

comment on exported type ActionRunnerDocker should be of the form "ActionRunnerDocker ..." (with optional leading article) (ST1021)
type ActionRunnerDocker struct{}

// Kind implements ActionRunnerMetadata interface
func (r *ActionRunnerDocker) Kind() ActionMetadataRunnerKind {
return ActionMetadataRunnerKindDocker
}

// ActionMetadataRuns is "runs" section of action.yaml. It defines how the action is run.
// https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs
type ActionMetadataRuns struct {
Expand Down

0 comments on commit 3ea8398

Please sign in to comment.