Skip to content
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

Edit PR's description or add a new comment #6

Open
humitos opened this issue Jul 25, 2022 · 4 comments
Open

Edit PR's description or add a new comment #6

humitos opened this issue Jul 25, 2022 · 4 comments

Comments

@humitos
Copy link
Member

humitos commented Jul 25, 2022

The action currently edits the PR description to add a separator and below that the links.

Screenshot_2022-07-25_16-23-27

It would be good if we can also support adding a new comment the first time and after that update the comment with the newer links, if any. Then, the user could choose the approach that like the most.

Both approaches have pros/cons that is worth considering.

@benjaoming
Copy link

I like comments because:

  1. It's conventional (other similar types of integrations do the same), and we can make "bot" appear next to the commenting profile.
  2. It generates notifications, description updates may go silently unnoticed.
  3. Date and time stamps for creation and modified

@humitos
Copy link
Member Author

humitos commented Jul 28, 2022

I originally used a comment following the "convention" but immediately remembered the things that bother me from that behavior:

  • after opening a PR, I receive a notification on GH saying there is a new comment. I prefer to not have that noise in my GH daily workflow
  • I see all those comments as a lot of spam. The combination of them would be terrible: welcome bot, documentation, codecov, etc.
  • I'm not sure why the timestamp for this would be important, but when the description is edited by the GH action, the timestamp is saved and you can see it by clicking the little arrow if needed.

Note these are all personal preferences, of course 😄

I'm sure we won't make all the users happy with this, implementing one or the other approach. That's why I opened the issue to discuss "Comment instead of edit the PR's description" and start collecting feedback and eventually implement it as configuration option.

@benjaoming
Copy link

This is a good point, and even though GitHub may know and indicate that a profile is a bot, they don't seem to have ways to filter out notifications from bot comments AFAIK.

Perhaps converting to comments is something that we can do when we have refined the message? I listed some scenarios in #4 and I think it's more clear that we need an "intelligent" way of detecting documentation changes before generating notification noise.

Summarizing: I think we should generate a comment and a notification for the first time that relevant documentation changes are seen -- so perhaps we shouldn't introduce a commenting feature at all before we can detect relevant page changes. Otherwise the comments would also have to say "something might have changed in your documentation - so we built a new version. And behold here it is, you can check it yourself" -- it does seem to be very noisy and not very useful if a repository has 90% PRs without docs changes :)

@DrShushen
Copy link

I would definitely like to have the option of having this as a comment rather than the description being edited. The main reasons are: (1) it is indeed the convention, and (2) I often need to edit the PR description many times, so straight away I'm getting a concern "will this play nicely with editing the description?" (I'm sure it works fine, but it causes some hesitation). It's all of course user preference at the end of the day, but having this as an option would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants