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

feat: respect CHANGES_REQUESTED approval state #339

Merged
merged 6 commits into from
Dec 11, 2024
Merged

Conversation

GrantBirki
Copy link
Member

@GrantBirki GrantBirki commented Dec 11, 2024

In the past, this Action has not respected the CHANGES_REQUESTED review state on pull request. This PR makes it so that CHANGES_REQUESTED will be treated the same way as REVIEW_REQUIRED going forward. By doing so, .deploy operations will be blocked if your PR is currently in a state of requested changes.

To think about this in another way... any pull request that is not in the APPROVED state will be treated as "missing approvals".

This does not apply to repos where PR approvals are not required via their branch protection settings, just as before.

This is likely the desired state for nearly everyone using this Action, but has not been enforced in the past.

@GrantBirki GrantBirki added the enhancement New feature or request label Dec 11, 2024
@GrantBirki GrantBirki self-assigned this Dec 11, 2024
@GrantBirki GrantBirki marked this pull request as ready for review December 11, 2024 23:47
@Copilot Copilot bot review requested due to automatic review settings December 11, 2024 23:47

Choose a reason for hiding this comment

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

Copilot reviewed 7 out of 8 changed files in this pull request and generated no suggestions.

Files not reviewed (1)
  • tests/templates/test_deployment_message.md: Evaluated as low risk

Tip: Turn on automatic Copilot reviews for this repository to get quick feedback on every pull request. Learn more

@GrantBirki GrantBirki merged commit dd13fea into main Dec 11, 2024
4 checks passed
@GrantBirki GrantBirki deleted the changes-requested branch December 11, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant