(changes []defaultsUpdateChange)
| 407 | } |
| 408 | |
| 409 | func 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 | |
| 425 | func resolveDefaultsTarget(scope, repo, org, enterprise string, scopeRequired bool) (defaultsTarget, error) { |
| 426 | normalizedScope := strings.TrimSpace(scope) |
no outgoing calls
no test coverage detected