rust-lang / homu

A bot that integrates with GitHub and your favorite continuous integration service
MIT License
182 stars 57 forks source link

bors argument parsing does not report errors #8

Open RalfJung opened 6 years ago

RalfJung commented 6 years ago

I recently issued the command @bors r+ rollup+, because I have seen plenty of cases where one has to add a + after a command to make it happen. Not so for rollup, it seems, but bors also did not complain. Can we get error messages when there is a word+ or word- but bors does not actually recognize this as a command?

RalfJung commented 6 years ago

Oh, and as a bonus (but less important), accepting rollup+ as well as rollup would be nice :)

kennytm commented 6 years ago

I think it's better just let homu recognize rollup+, try+ and treeclosed+.

bryanburgers commented 5 years ago

This is a good first issue for somebody new to Homu.

A little guidance for somebody taking this task:

Centril commented 5 years ago

and treeclosed+.

@kennytm What does this even mean if there's no priority?

kennytm commented 5 years ago

It would mean treeclosed=1

Centril commented 5 years ago

@kennytm I would always like that to scream loudly that I've done something wrong because >= 1 is entirely ineffective.

RalfJung commented 5 years ago

I have no mental model as to why some things have a + suffix and some don't.

I mean, treeclose- is a thing, right? So then not having treeclose+ seems really weird?

Centril commented 5 years ago

@RalfJung treeclosed- means that you remove the previous treeclosed=P. If you use rollup- it means removing the rollup annotation; but treeclosed+ meaning treeclosed=1 is "a bug" from a UX perspective of the person doing the treeclosing. If treeclosed+ was equivalent to treeclosed=500 I would be fine with it.

RalfJung commented 5 years ago

So treeclosed=0 is not "un-closing" the tree? That is surprising, too.

Centril commented 5 years ago

I don't know; I've never tried it :)