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

Ignore approvals from PR author present as approver in OWNERS file #1396

Open
souvik-deepsource opened this issue Dec 10, 2021 · 5 comments
Open

Comments

@souvik-deepsource
Copy link

Is there a way to ignore approvals from PR authors who are added as approvers in the OWNERS file?

@ankitm123
Copy link
Member

Not that I know of, what is the use case for this?

@souvik-deepsource
Copy link
Author

There is a chance that the author might approve mistakenly. Basically, we want the PR author who is an approver to refrain from self approving his own PR.

@ankitm123
Copy link
Member

ankitm123 commented Jan 6, 2022

This is currently not supported in lighthouse or prow (which is what lighthouse is forked from, atleast the version of prow which was the base of the lighthouse fork).
I will take a look later this week (I have a pending PR to complete before that).

@ankitm123
Copy link
Member

/assign
I think this is a good feature to have. We can put it behind a feature flag, so that it does not break current workloads. So by default it will do what it's doing now, but u toggle a flag, and it removes self approval. wdyt?

@souvik-deepsource
Copy link
Author

Yup, we want to remove self approval by PR authors who are approvers of the repo as well.

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

No branches or pull requests

2 participants