refactor: archie:* → agent:* labels, remove stale archie label
This commit is contained in:
1 parent
b8ac644acd
commit
242762b2fb
3 files changed
+15
-15
No files matched your search
+5
-6
@@ -5,7 +5,6 @@ work_dir = "/var/lib/archie/work"
|
||||
db_path = "/var/lib/archie/archie.db"
|
||||
|
||||
poll_interval = "60s"
|
||||
label = "archie"
|
||||
bot_user = "archie"
|
||||
diff_cap_lines = 0
|
||||
|
||||
@@ -19,11 +18,11 @@ trigger = "assignee"
|
||||
ack_reaction = "eyes"
|
||||
|
||||
[dispatch.labels]
|
||||
queued = "archie:queued"
|
||||
working = "archie:working"
|
||||
waiting = "archie:waiting"
|
||||
pr = "archie:pr"
|
||||
parked = "archie:parked"
|
||||
queued = "agent:queued"
|
||||
working = "agent:working"
|
||||
waiting = "agent:waiting"
|
||||
pr = "agent:pr"
|
||||
parked = "agent:parked"
|
||||
|
||||
[agent]
|
||||
mode = "nats"
|
||||
|
||||
@@ -49,6 +49,7 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
image: git.catlow.cloud/sam/archie-agent:latest
|
||||
command: ["true"]
|
||||
entrypoint: [""]
|
||||
restart: "no"
|
||||
|
||||
volumes:
|
||||
|
||||
@@ -203,15 +203,15 @@ type Dispatch struct {
|
||||
Labels map[string]string `toml:"labels" json:"labels"`
|
||||
}
|
||||
|
||||
// dispatchLabelDefaults is the fallback label set, reproducing the
|
||||
// legacy archie:* constants that were previously in internal/forge.
|
||||
// dispatchLabelDefaults is the fallback label set used when the user
|
||||
// hasn't configured explicit [dispatch.labels] entries.
|
||||
var dispatchLabelDefaults = map[string]string{
|
||||
"queued": "archie:queued",
|
||||
"working": "archie:working",
|
||||
"waiting": "archie:waiting",
|
||||
"pr": "archie:pr",
|
||||
"parked": "archie:parked",
|
||||
"dead": "archie:dead",
|
||||
"queued": "agent:queued",
|
||||
"working": "agent:working",
|
||||
"waiting": "agent:waiting",
|
||||
"pr": "agent:pr",
|
||||
"parked": "agent:parked",
|
||||
"dead": "agent:dead",
|
||||
}
|
||||
|
||||
// StateLabel returns the configured label for a state name. Falls back
|
||||
@@ -401,7 +401,7 @@ func Load(path string) (Config, error) {
|
||||
cfg.PollInterval = Duration(60 * time.Second)
|
||||
}
|
||||
if cfg.Label == "" {
|
||||
cfg.Label = "archie"
|
||||
cfg.Label = ""
|
||||
}
|
||||
if cfg.DiffCapLines == 0 {
|
||||
cfg.DiffCapLines = 400
|
||||
|
||||
Reference in new issue
Block a user