hive-forge reaction: add --list-allowed to surface the instance's configured shortcodes
This commit is contained in:
parent
96a27cef3c
commit
fb9cc5635a
4 changed files with 36 additions and 5 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue