MCPcopy Create free account
hub / github.com/cloudbase/garm / GitHubLabels

Method GitHubLabels

params/params.go:689–700  ·  view source on GitHub ↗

GitHubLabels returns the label list for GitHub scale set API calls. The scale set name is always included as the first "System" label, matching actions-runner-controller behavior. Additional tag names are appended with deduplication.

()

Source from the content-addressed store, hash-verified

687// matching actions-runner-controller behavior. Additional tag names
688// are appended with deduplication.
689func (p ScaleSet) GitHubLabels() []Label {
690 labels := []Label{{Name: p.Name, Type: "System"}}
691 seen := map[string]bool{p.Name: true}
692 for _, t := range p.Tags {
693 if seen[t.Name] {
694 continue
695 }
696 seen[t.Name] = true
697 labels = append(labels, Label{Name: t.Name})
698 }
699 return labels
700}
701
702func (p ScaleSet) BelongsTo(entity ForgeEntity) bool {
703 switch p.ScaleSetType() {

Callers 2

CreateEntityScaleSetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected