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

deploy commits made after approval #5650

Merged
merged 6 commits into from
Sep 7, 2022

Conversation

jakecoffman
Copy link
Member

A downside to #5640 was commits pushed after approval aren't deployed.

So to fix that, I've restored the pull_request trigger, but use gh to get the review state. Thus if a commit comes in after approval it will still be able to see if was approved. Commits before an approval should be skipped.

@jakecoffman jakecoffman requested a review from a team as a code owner September 7, 2022 19:32
@jakecoffman
Copy link
Member Author

Hold off on approving so I can test this. Also I seem to have broken the workflow.

@jakecoffman
Copy link
Member Author

Great, it looks like it's working now:

Review decision is: REVIEW_REQUIRED

Copy link
Contributor

@pavera pavera left a comment

Choose a reason for hiding this comment

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

Test away :)

@jakecoffman
Copy link
Member Author

@jakecoffman
Copy link
Member Author

Update trigger worked too: https://github.com/dependabot/dependabot-core/runs/8236356928?check_suite_focus=true

Only thing left is to test on main 🤞

@jakecoffman jakecoffman merged commit 1807277 into main Sep 7, 2022
@jakecoffman jakecoffman deleted the jakecoffman/handle-push-after-approval branch September 7, 2022 20:18
@pavera pavera mentioned this pull request Oct 31, 2022
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.

None yet

2 participants