tooling: issue-assign.sh uses stale --assignees flag, breaks on tea 0.14.0 (needs --add-assignees) #1501

Open
opened 2026-09-11 22:08:31 +00:00 by fred · 0 comments
Collaborator

Summary

~/.config/mosaic/tools/git/issue-assign.sh fails on any Gitea repo when
-a/--assignee is passed:

Incorrect Usage: flag provided but not defined: -assignees
Error: flag provided but not defined: -assignees

Cause

The wrapper hardcodes tea issue edit --assignees "$ASSIGNEE"
(issue-assign.sh:115). The installed tea (0.14.0) has renamed this flag:

$ tea issue edit --help | grep -i assign
   --add-assignees string, -a string       Comma-separated list of usernames to assign

So every -a/--assignee invocation of the wrapper fails on this tea
version, blocking issue assignment through the mandatory wrapper path
(Constitution gate 6/7). There is no REST fallback in this wrapper (unlike
issue-create.sh), so this fully blocks assignment on hosts running this
tea version.

Ask

Update issue-assign.sh line 115 to use --add-assignees (and check the
--labels/--milestone flag names against current tea for the same class
of drift), or add a REST fallback consistent with issue-create.sh.

Repro

tea --version   # 0.14.0
~/.config/mosaic/tools/git/issue-assign.sh -i <any open issue> -a <username>

Context

Hit while trying to assign #1450 to a code owner per a fleet dispatch. Not
urgent/blocking on its own, but leaves issue-assign with no working path on
this host.

## Summary `~/.config/mosaic/tools/git/issue-assign.sh` fails on any Gitea repo when `-a/--assignee` is passed: ``` Incorrect Usage: flag provided but not defined: -assignees Error: flag provided but not defined: -assignees ``` ## Cause The wrapper hardcodes `tea issue edit --assignees "$ASSIGNEE"` (`issue-assign.sh:115`). The installed `tea` (0.14.0) has renamed this flag: ``` $ tea issue edit --help | grep -i assign --add-assignees string, -a string Comma-separated list of usernames to assign ``` So every `-a`/`--assignee` invocation of the wrapper fails on this tea version, blocking issue assignment through the mandatory wrapper path (Constitution gate 6/7). There is no REST fallback in this wrapper (unlike `issue-create.sh`), so this fully blocks assignment on hosts running this tea version. ## Ask Update `issue-assign.sh` line 115 to use `--add-assignees` (and check the `--labels`/`--milestone` flag names against current tea for the same class of drift), or add a REST fallback consistent with `issue-create.sh`. ## Repro ``` tea --version # 0.14.0 ~/.config/mosaic/tools/git/issue-assign.sh -i <any open issue> -a <username> ``` ## Context Hit while trying to assign #1450 to a code owner per a fleet dispatch. Not urgent/blocking on its own, but leaves issue-assign with no working path on this host.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#1501