gitea-backporter icon indicating copy to clipboard operation
gitea-backporter copied to clipboard

`lgtm/blocked` not being removed on review re-request

Open silverwind opened this issue 1 year ago • 4 comments

See https://github.com/go-gitea/gitea/pull/29191. The bot did not remove the label after re-request which lifted the block. Maybe GitHub has changed something about this API because I recall this did work before.

image image

Correctly, it should have removed lgtm/blocked and added lgtm/need-2.

silverwind avatar Feb 23 '24 16:02 silverwind

I think it's because @denykson removed the self-review request. He should try to request a self-review

yardenshoham avatar Feb 23 '24 16:02 yardenshoham

@yardenshoham Re-requesting review didn't work, so I tried removing the review request

denyskon avatar Feb 23 '24 19:02 denyskon

Hmmm that's weird, you can review the approval logic here

https://github.com/GiteaBot/gitea-backporter/blob/c76b28699e142a4f5903131df223c6cafb80d7d5/src/github.ts#L288-L342

yardenshoham avatar Feb 23 '24 19:02 yardenshoham

Actually this is working as designed, we don't dismiss blockers on review request. Only on review dismiss. The problem is that we can't detect a self-review request, only that a review from the user is requested. So the algorithm has a flaw, you can't dismiss a blocker if you are a non-merger maintainer.

You could approve then request self-review, that'll do it.

yardenshoham avatar Feb 23 '24 19:02 yardenshoham