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

Function defaultsUpdateRows

pkg/cli/env_command.go:409–423  ·  view source on GitHub ↗
(changes []defaultsUpdateChange)

Source from the content-addressed store, hash-verified

407}
408
409func defaultsUpdateRows(changes []defaultsUpdateChange) []defaultsUpdateRow {
410 rows := make([]defaultsUpdateRow, 0, len(changes))
411 for _, change := range changes {
412 action := "set"
413 if change.delete {
414 action = "delete"
415 }
416 rows = append(rows, defaultsUpdateRow{
417 Field: change.field,
418 Action: action,
419 Value: change.value,
420 })
421 }
422 return rows
423}
424
425func resolveDefaultsTarget(scope, repo, org, enterprise string, scopeRequired bool) (defaultsTarget, error) {
426 normalizedScope := strings.TrimSpace(scope)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected