hive-forge reaction: add --list-allowed to surface the instance's configured shortcodes

This commit is contained in:
damocles 2026-08-18 12:56:54 +02:00 committed by mara
commit fb9cc5635a
4 changed files with 36 additions and 5 deletions

View file

@ -89,7 +89,12 @@ pub fn run(client: &Client, args: Args) -> Result<()> {
verbs::dependency::run(client, a)
}
Cmd::Reaction(a) => {
assert_kind(client, a.number, Kind::Issue)?;
// `--list-allowed` is instance-global, not issue-scoped — skip
// the kind-assert rather than force a real issue number on a
// call that never uses it.
if !a.list_allowed {
assert_kind(client, a.number, Kind::Issue)?;
}
verbs::reaction::run(client, a)
}
Cmd::Timeline(a) => {