(87862df) Attribute an entry to WORKLANE_ACTOR, not to the git user, and bump to 0.28.0

Every comment the CLI wrote was attributed to the git user, so a board
several agents write to read as a list of things one human had done.
resolve_actor is now the single source: flag, then WORKLANE_ACTOR, then
get_git_user(), then unknown.

comment --owner is renamed to --actor with no alias, since it names the
writer of the entry and not the ticket's assignee, which is chown's.
add --owner and campaign add --owner still default to the git user.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ansho Rei
2026-08-24 12:34:51 +02:00
co-authored by Claude Opus 5
parent c2ee165108
commit a1bdb5df49
11 changed files with 299 additions and 30 deletions
+2 -5
View File
@@ -725,7 +725,7 @@ pub fn cmd_mv(ticket_id: &str, target: Status, force: bool, start: &Path) -> Res
pub fn cmd_comment(
ticket_id: &str,
body: &str,
owner: &Option<String>,
actor: &Option<String>,
start: &Path,
) -> Result<()> {
if body.is_empty() {
@@ -745,10 +745,7 @@ pub fn cmd_comment(
let stem = Local::now().format(COMMENT_FILE_FORMAT).to_string();
let author = match owner {
Some(o) => o.clone(),
None => get_git_user().unwrap_or_else(|| "unknown".to_string()),
};
let author = resolve_actor(actor.as_deref());
let comment_content = format!(
"**Comment**\n\