MCPcopy Create free account
hub / github.com/github/gh-aw / variablesEndpoint

Method variablesEndpoint

pkg/cli/env_command.go:478–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

476}
477
478func (t defaultsTarget) variablesEndpoint() string {
479 switch t.scope {
480 case defaultsScopeRepo:
481 return fmt.Sprintf("repos/%s/%s/actions/variables", t.repoOwner, t.repoName)
482 case defaultsScopeOrg:
483 return fmt.Sprintf("orgs/%s/actions/variables", t.org)
484 default:
485 return fmt.Sprintf("enterprises/%s/actions/variables", t.enterprise)
486 }
487}
488
489func (t defaultsTarget) variableEndpoint(name string) string {
490 return fmt.Sprintf("%s/%s", t.variablesEndpoint(), url.PathEscape(name))

Callers 3

variableEndpointMethod · 0.95
upsertDefaultsVariableFunction · 0.80

Calls

no outgoing calls

Tested by 1