Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,16 +733,7 @@ const perRepoConfigHeader = `# fullsend per-repo configuration
# https://github.com/fullsend-ai/fullsend
#
# This file configures fullsend for per-repo installation mode.
# See ADR 0033 for details.
#
# The "runtime" key selects which agent runtime runs the agents, claude
# (default when unset) or pi. For one run, the 'fullsend run --runtime'
# flag wins, then FULLSEND_RUNTIME, then this file. See docs/runtimes.md.
#
# An entry in the agents list can set runtime, model and effort for one
# agent (an entry with just a name tunes a built-in agent); those win over
# the repo-wide runtime key and the harness, and per-run flags/variables
# still win over them. See docs/runtimes.md.
# See https://fullsend.sh/docs/guides/infrastructure/layered-config-reference
`

// NewPerRepoConfig creates a new perRepoConfig with the given roles.
Expand Down
7 changes: 7 additions & 0 deletions internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,13 @@ func TestPerRepoConfigMarshal_KillSwitchOmitted(t *testing.T) {
assert.NotContains(t, string(data), "kill_switch")
}

func TestPerRepoConfigHeaderPointsToUserDocs(t *testing.T) {
assert.NotContains(t, perRepoConfigHeader, "ADR",
"per-repo config header must not reference internal ADRs")
assert.Contains(t, perRepoConfigHeader, "https://fullsend.sh/",
"per-repo config header should link to user-facing docs")
}

func TestPerRepoConfig_RoundTrip(t *testing.T) {
original := NewPerRepoConfig([]string{"fullsend", "triage", "coder", "review", "fix"}, "")
data, err := original.Marshal()
Expand Down
Loading