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

Bug: Strange behaviours of Giteabot when request a review of user #104

Closed
lunny opened this issue Aug 28, 2023 · 12 comments · Fixed by #105
Closed

Bug: Strange behaviours of Giteabot when request a review of user #104

lunny opened this issue Aug 28, 2023 · 12 comments · Fixed by #105
Labels
bug Something isn't working

Comments

@lunny
Copy link
Collaborator

lunny commented Aug 28, 2023

图片

ref go-gitea/gitea#26729

@lunny lunny added the bug Something isn't working label Aug 28, 2023
@yardenshoham
Copy link
Collaborator

I don't see an issue, if @KN4CK3R is requested to review then we ignore his blocking review. Otherwise, his review is relevant and blocks the PR. This matches the icons in GitHub's widget.

image

What behavior did you expect?

@KN4CK3R
Copy link

KN4CK3R commented Aug 28, 2023

I think lunny talks about the added lgtm/done label in the last line. The review request should not have changed that because I still blocked the PR at that time. You can't merge the PR if there are still blocking reviews.

@yardenshoham
Copy link
Collaborator

The feature request lists the opposite

image

@KN4CK3R
Copy link

KN4CK3R commented Aug 28, 2023

But I did not approve the changes previously, I requested changes. Therefore the status should always be blocked.

@silverwind
Copy link
Collaborator

I did notice the bot sometimes adding wrong lgtm/done while commenting on code too, so there is definitely some bug there. If the checkmark count is correct, I suspect it's a bug on GitHub's side because they should not have set the checkmark.

@yardenshoham
Copy link
Collaborator

Please decide what the desired behavior should be, and I will implement it.

@silverwind
Copy link
Collaborator

silverwind commented Aug 30, 2023

I see no issue with current implementation. Yellow dot is a requested but not required review. A negative review will block, but if someone re-requests a previously negative review, that will clear the block, which is imho expected.

That said, there is another bug somewhere, if I reproduce it again, I will open a separate issue.

@KN4CK3R
Copy link

KN4CK3R commented Aug 30, 2023

But the re-request of a negative review does not clear the merge block on Github.

@silverwind
Copy link
Collaborator

silverwind commented Aug 31, 2023

But the re-request of a negative review does not clear the merge block on Github.

It changes your icon from red to yellow, doesn't it? How is the merge block indicated when not by this icon? Is this merge block state available on GitHub API?

@KN4CK3R
Copy link

KN4CK3R commented Aug 31, 2023

See this PR go-gitea/gitea#25396
I blocked it and requested changes. My re-review is requested and the icon is yellow. Still the bottom shows that I block that PR at the moment:
grafik

@silverwind
Copy link
Collaborator

silverwind commented Aug 31, 2023

Thanks. We should check whether GitHub API exposes this "changes requested" list and set the block status when user count > 0, irregardless of the review statuses.

@yardenshoham
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants