feat: Add PR requester for external reviewers#446
Conversation
7b68e7a to
138932c
Compare
194a68e to
1bf5044
Compare
|
In order to make this work, we need that all the added participants of the To prove this works I made the PR now just with @icemelon as is the only of the members who is added as |
|
@CPerezz Yes, I received the email notification of the review request to this PR. |
|
@DreamWuGit can you check your email for repo invitation? |
|
|
@DreamWuGit Thank you :) I mean just the repo invitation, not the review request. |
1bf5044 to
139ae57
Compare
|
@ChihChengLiang @icemelon could you take another look and approve? All the members are set now 🎉 |
Force-pushing to the PR currently re-triggers the workflow by assigning to the PR a new member of the team while mantaining the previous. That's an issue as we end up with multiple reviewers on each PR when indeed we just need one. See: uesteibar/reviewer-lottery#26 for more details.
872de15 to
8d28c15
Compare
|
Moving conversation from #467 Following up on the previous message, here is the implementation we have concluded on with pros and cons.
Cons: If everyone agrees on this approach, i will shortly raise a PR for review. |
|
@DreamWuGit, This probably needs further investigation. @ChihChengLiang , did you by any chance apply different permission levels against @DreamWuGit account/repo? |
The solution doesn't look too resilient. Seems that introduced overhead and also we need to wait for the assignations anyway. |
Indeed, it adds unnecessary complexity. |
@ntampakas you mean github personal token in setting ? I don't change it as it is not expired at the moment , I am not aware of something different rather than git push operation ! feel free to let me know if you need to check specific |
|
This problem can be simply solved by changing "pull_request"(external_reviewers_assig.yml#L3) to "pull_request_target" As explained at the end of https://github.com/marketplace/actions/auto-request-review
& at the end of https://github.com/marketplace/actions/reviewer-lottery
|
|
@HAOYUatHZ , this really seems to resolve the issue (verifying after testing against local GH accounts). @CPerezz , may i ask what was the reason this workflow was implemented using the pull_request event and not pull_request_target? |
|
Also, as far as i can see from succeeded Reviewer lottery GH actions, external-zkevm-reviewers from reviewer-lottery.yml file seem not to be assigned in any PR coming from fork. |
No particular reason. We can change it but I don't think is going to make any difference.
This is because they're requested a review from the CODEOWNERS file directly. |
Deprecates #438 and instead adds the external_reviewers to the PR
reviews using a 3rd party application.
That is done like this to avoid including a lot of people into
appliedzkporg and granting custom permissions each time we want toadd a new reviewer.
Resolves: #429 completely.