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

Die when git push fails #3052

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Die when git push fails #3052

merged 1 commit into from
Jul 9, 2024

Conversation

quanganhdo
Copy link
Member

Task/Issue URL: https://app.asana.com/0/414709148257752/1207740322700266/f
Tech Design URL:
CC:

Description:

Ran into a silent failure when trying to make a subsequent release for 7.127.0, turned out it was an issue with git push (local branch is behind).

I'm adding a check for git push exit status so it's easier to know what goes wrong.

Also, some extra whitespace removal.

Steps to test this PR:
1.
2.

Definition of Done (Internal Only):

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than '

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 15
  • iOS 16
  • iOS 17

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

@quanganhdo quanganhdo requested a review from jaceklyp July 5, 2024 21:41
eval git push -u origin "${release_branch}" "$mute"
if ! eval git push -u origin "${release_branch}" "$mute"; then
Copy link
Member Author

@quanganhdo quanganhdo Jul 5, 2024

Choose a reason for hiding this comment

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

Tested this with a dummy branch but my bash-fu is quite limited so lmk if there's better way to do it.

Copy link
Contributor

@jaceklyp jaceklyp left a comment

Choose a reason for hiding this comment

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

LGTM :)

@quanganhdo quanganhdo merged commit 259cd88 into main Jul 9, 2024
18 checks passed
@quanganhdo quanganhdo deleted the anh/git-push-error branch July 9, 2024 02:44
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