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

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