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

Optimize auto approval workflow #5328

Merged
merged 3 commits into from
Dec 12, 2023
Merged

Conversation

banesullivan
Copy link
Member

I'm not totally sure if this will fix things, but I'm hoping that by moving the condtional from a workflow step to the job level, GitHub Actions will be able to parse whether or not it needs to spin up a runner or not.

At present, this workflow is eating up a ton of our CI bandwidth as it is spinning up a runner for every single PR comment and every time a comment is edited.

I went a step further and turned off runs for comment edits.

@tkoyama010
Copy link
Member

tkoyama010 commented Dec 12, 2023

ping @germa89 (Edit: Sorry to ping you a lot.)

@banesullivan
Copy link
Member Author

I may go spin this up in a dummy repo to test

@github-actions github-actions bot added the maintenance Low-impact maintenance activity label Dec 12, 2023
@banesullivan
Copy link
Member Author

Confirmed in a sperate repo that this should do it!

Screenshot 2023-12-11 at 10 52 25 PM

Copy link
Member

@tkoyama010 tkoyama010 left a comment

Choose a reason for hiding this comment

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

LGTM

with:
review-message: ":white_check_mark: Approving this PR because [${{ github.event.comment.user.login }}](https://github.com/${{ github.event.comment.user.login }}) said so in [here](${{ github.event.comment.html_url }}) :grimacing:"
review-message: ":white_check_mark: Approving this PR because [${{ github.event.comment.user.login }}](https://github.com/${{ github.event.comment.user.login }}) said so in [here](${{ github.event.comment.html_url }}) :shipit:"
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

:shipit:

@banesullivan banesullivan enabled auto-merge (squash) December 12, 2023 07:05
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

Merging #5328 (9cd20a6) into main (60dd29d) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5328   +/-   ##
=======================================
  Coverage   96.20%   96.20%           
=======================================
  Files         134      134           
  Lines       22717    22717           
=======================================
  Hits        21855    21855           
  Misses        862      862           

Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request December 12, 2023 08:34 Inactive
@banesullivan banesullivan merged commit a572bb7 into main Dec 12, 2023
27 checks passed
@banesullivan banesullivan deleted the maint/optimize-auto-approve branch December 12, 2023 08:42
@banesullivan banesullivan mentioned this pull request Dec 14, 2023
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Low-impact maintenance activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants