Skip to content

deploy commits made after approval#5650

Merged
jakecoffman merged 6 commits intomainfrom
jakecoffman/handle-push-after-approval
Sep 7, 2022
Merged

deploy commits made after approval#5650
jakecoffman merged 6 commits intomainfrom
jakecoffman/handle-push-after-approval

Conversation

@jakecoffman
Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

@jakecoffman
Copy link
Copy Markdown
Member Author

Great, it looks like it's working now:

Review decision is: REVIEW_REQUIRED

Copy link
Copy Markdown
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
Copy Markdown
Member Author

@jakecoffman
Copy link
Copy Markdown
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.

2 participants