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

Move update-pr-from-base-branch to a more reliable position #3931

Merged
merged 4 commits into from
Feb 1, 2021
Merged

Conversation

fregante
Copy link
Member

@fregante fregante commented Feb 1, 2021

Fixes #3927
Fixes #3699
Replaces #3929

I noticed that the mergeability box varies a lot and it's a pain to cover all the cases reliably. So I just moved the action next to the text that tells we can update it by pushing, which makes sense. Also it helps that this text doesn't change that often.

The only drawback is that it wraps more often than it did before, pushing the box lower by 20px.

Screen Shot 10

cc @yakov116

@fregante fregante added the bug label Feb 1, 2021
@yakov116
Copy link
Member

yakov116 commented Feb 1, 2021

Brilliant! Cleaner Code, Much better. I like the look too! 🎉

Or else we keep getting the link, because api.v3 is memoized and the dom is regenerated before the API itself clears its cache.
@fregante
Copy link
Member Author

fregante commented Feb 1, 2021

Cleaner Code, Much better

Yeah most of the code there was duplicate or just no longer working.

@yakov116
Copy link
Member

yakov116 commented Feb 1, 2021

Can we do update the PR branch?

@fregante fregante merged commit c4af309 into main Feb 1, 2021
@fregante fregante deleted the update-pr branch February 1, 2021 17:34
@fregante
Copy link
Member Author

fregante commented Feb 1, 2021

Good point, I tried shortening it but it's not super clear. I restored the previous text.

And… merged just in time! 21.2.1 coming!

@yakov116
Copy link
Member

yakov116 commented Feb 1, 2021

image

@yakov116
Copy link
Member

yakov116 commented Feb 1, 2021

You stopped it? Why did it not run?

@fregante
Copy link
Member Author

fregante commented Feb 1, 2021

It should have, the time was correctly parsed by GitHub too.

Screen Shot 1

I'm guessing:

  • they had some problems right when it was supposed to run
  • it will run delayed
  • their backend failed to parse the date correctly

I'll deploy manually now either way

@fregante
Copy link
Member Author

fregante commented Feb 1, 2021

Oh shoot, just in time.

Screen Shot 2

@busches
Copy link
Member

busches commented Feb 2, 2021

Any reason it's still referred to as a button when it's just text now?

@fregante
Copy link
Member Author

fregante commented Feb 5, 2021

What would you call it? It's not a link, it doesn't link to anything. Maybe the text can be changed to something like "Lets you update the PR with a click" without using "Adds a XXX" every time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants