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

Set minimum approvals #1

Merged
merged 6 commits into from
Apr 5, 2022

Conversation

elmundio87
Copy link
Contributor

@elmundio87 elmundio87 commented Mar 27, 2022

This PR allows setting a minimum number of approvals before the workflow continues, via a new input parameter minimum_approvals.

This means you can now list an entire team of users as approvers, but only need one of them to approve the manual step.

If the new parameter is not set, the existing behaviour is preserved - all reviewers are required to approve.

I have updated the test suite to take this change into account, and I compiled my own docker image to test in a separate repository.

Passing workflow: https://github.com/elmundio87/manual-approval-test/runs/5706511606?check_suite_focus=true
Associated issue: elmundio87/manual-approval-test#5

Thanks for the great Github Action!

Copy link
Owner

@trstringer trstringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! Just a couple of small changes before merging.

action.yaml Outdated Show resolved Hide resolved
approval_test.go Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
@elmundio87
Copy link
Contributor Author

Hi @trstringer , I have made the changes you have requested

@gerardstanczak
Copy link

Love the feature, please merge it to make it available for general use :)

@golgotow
Copy link

golgotow commented Apr 5, 2022

this be great, waiting for merge !

@trstringer trstringer merged commit 4d12fc4 into trstringer:main Apr 5, 2022
@trstringer
Copy link
Owner

Thank you for your contribution! 🎉

@elmundio87 elmundio87 deleted the set-minimum-approvals branch April 5, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants