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: Add gha for merging prod into main #715

Merged
merged 11 commits into from
Dec 5, 2023

Conversation

alldoami
Copy link
Contributor

@alldoami alldoami commented Nov 29, 2023

Summary

Step in release action to create a PR after release steps are done. I caught up with Masoud and he said this is the only manual step that is still happening in the release process.

Here is some fun documentation on the GITHUB_TOKEN secret that I learned: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret

Here is documentation about the create pr gha: https://github.com/marketplace/actions/create-pull-request

Added the ability to autoapprove and automerge the PR. Docs: https://github.com/marketplace/actions/enable-pull-request-automerge.

Did thorough testing here: https://github.com/chanzuckerberg/ghas-internal-feature-testing/pull/7. Thanks to @hspitzley-czi for helping me out with this!

Feedback I'd like:
Is this the right place to put this? Should this step go at the very bottom of this file after job 3? I put it at the end of Job 1 because if all of those steps succeed, then this should be run, correct?

Checklist

  • Default Story in Storybook
  • LivePreview Story in Storybook
  • Test Story in Storybook
  • Tests written
  • Variables from defaultTheme.ts used wherever possible
  • If updating an existing component, depreciate flag has been used where necessary
  • Chromatic build verified by @chanzuckerberg/sds-design

@alldoami alldoami requested a review from tihuan November 29, 2023 18:47
@alldoami alldoami marked this pull request as ready for review November 29, 2023 18:47
Copy link
Contributor

@tihuan tihuan left a comment

Choose a reason for hiding this comment

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

Hurray! Thanks so much for closing the manual loop in the deploy process for us, @alldoami 🤩 👏

Really appreciate the context shared in the PR description too. Super helpful and lots of TILs 💡

Will wait for @masoudmanson to LGTM, in case I missed anything lol

Thanks again!!

Copy link
Contributor

@tihuan tihuan left a comment

Choose a reason for hiding this comment

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

Woahhh can't wait to get this merged!! Thanks so much again for making this possible, @alldoami 🤩 🙏 You BEYOND amazing!!


# Step 14: Autoapprove PR
# Step 15: Autoapprove PR
Copy link
Contributor

Choose a reason for hiding this comment

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

Brilliant 🔥 !!! Thanks so much for auto merging the PR 🚀 💡 This is SO exciting!!

Copy link
Contributor

Choose a reason for hiding this comment

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

Incredible work, @alldoami! Thank you for your dedication and effort in putting this together. it's truly remarkable! 😍🥳🤩

Copy link
Contributor

@tihuan tihuan left a comment

Choose a reason for hiding this comment

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

LGTM!! 🚀 Thanks so much again!!

Copy link
Contributor

@masoudmanson masoudmanson left a comment

Choose a reason for hiding this comment

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

Thank you, @alldoami, for your contribution. This means a lot to us! 😍 I'm going to go ahead and merge this PR and start using the new workflows. 🥳


# Step 14: Autoapprove PR
# Step 15: Autoapprove PR
Copy link
Contributor

Choose a reason for hiding this comment

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

Incredible work, @alldoami! Thank you for your dedication and effort in putting this together. it's truly remarkable! 😍🥳🤩

private_key: ${{ secrets.CZI_GITHUB_HELPER_PK }}

# Step 15: Autoapprove PR
- name: Autoapprove PR
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh 😯
I had no idea we could auto-approve the PRs ⭐️
This is fantastic! Thanks for sharing 🥳

@masoudmanson masoudmanson self-assigned this Dec 5, 2023
@masoudmanson masoudmanson added Ready for release This PR is ready for release Hackday labels Dec 5, 2023
@masoudmanson masoudmanson merged commit 21fed00 into main Dec 5, 2023
7 checks passed
@masoudmanson masoudmanson deleted the adoami/prod-into-main-action branch December 5, 2023 23:47
@masoudmanson masoudmanson added Released and removed Ready for release This PR is ready for release labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants