-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reminder to use ready
shortcut when using author
shortcut
#1899
base: master
Are you sure you want to change the base?
Conversation
I assume one of these "comment" should be "command" :D |
Not quite sure I like the fact that this edits comments. Would rather post a new comment once (and then no more). |
We do already post such comment, but from my experience it doesn't seem to work very much, in particular for new-comers. I think that is mainly due to due to the time between the comment and the usage of |
Well...then maybe we should just post the comment every time. (We could e.g. even filter if the user is not in the team repo.) Edit: just looked at the link, that's not quite what I was saying, it could still be valuable to have another comment create in response to the author command |
Also, this doesn't handle the case were the label is manually changed, right? I imagine that happens plenty often. |
I fear that posting a comment instead of editing the comment will quickly be annoying/spam. I personally wouldn't want the bot to add a comment every-time I (or someone else) uses the @RalfJung, as the issue author, would you happen to have an opinion/preference on the new comment vs edit comment?
Yes it wouldn't, and that's a conscience choice from me. I think that changing labels and using a command are two distinct way of doing an action and that we shouldn't see them having the same intent. I use the command with newcomers but often switch the labels manually with regular contributors (as it's faster and they know the process). |
We also post that only on their first PR.
Yeah that's why my original proposal involved the reviewer using a slightly different command to express their intent of posting a hint for the PR author. How easy would it be to only post a comment the first time someone uses |
Not too difficult, we have the infra to have data per issue/pr inside triagebot. So if I understand, the consensus seems to be to post the reminder once in a PR in a new comment at the first use of I could get behind that, I don't think it will be as effective but it also won't be annoying and spam; and as Jack alluded to earlier we could even omit the reminder when the PR author is in the team database. |
A minor concern I have is that I think editing comments could be flaky or dangerous. For example, any handlers that run after this one will not see the edited comment. If they do other strange things like editing, then they will conflict with one another. Another concern is that editing the comment will trigger another webhook, and triagebot will process the comment again. Although triagebot is pretty good about not re-running commands on edit, I don't have 100% confidence in it. |
da538d8
to
0c7de61
Compare
That's a very good argument that by editing a comment we could render some state inconsistent within triagebot. Given this and what seems to be the consensus, I have switch the implementation to post a unique new comment at the first use of the author shortcut, instead of editing the comment. |
This PR adds a small reminder to use
@bot ready
when using@bot author
, similar to what was proposed in in #1865 (comment).This is done to help newcomers, which might not know or have forgot what the command is.
To avoid spam the bot adds the reminder to the comment using the command instead of creating a new comment.To avoid spam the bot only post the reminder once per PR.
cc @RalfJung
r? @ehuss