Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Communicate inside the PR #42

Open
asbjornu opened this issue Apr 22, 2020 · 5 comments
Open

Communicate inside the PR #42

asbjornu opened this issue Apr 22, 2020 · 5 comments

Comments

@asbjornu
Copy link

asbjornu commented Apr 22, 2020

After /rebase is triggered, it would be nice to not have to manually go to "Actions" and click through to the rebase workflow to see how it is doing. When the action is triggered, it would be nice to get some sort of feedback in the PR and if it fails, the error message could be posted as a comment in the PR.

@Paulomart
Copy link
Contributor

I thought about using reaction for this, but then where is no way to display the error

@asbjornu
Copy link
Author

asbjornu commented Jun 6, 2020

@Paulomart, what do you mean "no way to display the error"? Many code review tools, such as reviewdog and Codacy are triggered with GitHub Actions and report their findings through GitHub's API with comments and annotations in the pull request. Is this not possible to do with the rebase action?

@Paulomart
Copy link
Contributor

Yeah that would be totally possible, but I think it would be a lot of noice.

@asbjornu
Copy link
Author

asbjornu commented Jun 7, 2020

I would say that the rebase action builds up to the expectancy of being able to communicate with comments in the PR, as that's how the rebase is triggered to begin with; by typing /rebase into a comment in the PR. This sort of human-bot-communication is exactly how Dependabot works. See SwedbankPay/swedbank-pay-sdk-dotnet#44 as an example:

Dependabot

As such, I wouldn't consider a single comment explaining how the rebase can't be performed as noise, I would consider it valuable and expected information. Having to click through to the GitHub Action and dig in the logs to even discover that the rebase can't be performed and why is not the best user experience.

@asbjornu
Copy link
Author

asbjornu commented Jun 7, 2020

I would actually love it if the rebase action behaved almost exactly like Dependabot. Here's a more concrete suggestion:

  1. When the rebase is started, the action could add a 👍 to the comment containing /rebase, just to visualize that the command is noticed. A missing 👍 would mean something with the action is wrong and that one would have to go investigate. Now, you sort of have to investigate no matter what.
  2. A GitHub Check is added to the PR to visualize the status of the rebase: Yellow for "in progress", green for completed successfully and red for completed unsuccessfully.
  3. When the rebase can't be performed, a comment explaining why is posted in the PR, with a link to the exact place it failed in the logs.

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

No branches or pull requests

2 participants