Skip to content

Hotkey for updating branch on a stale PR #1105

Closed

Description

@vanniktech

I'd like to use a hotkey for updating a branch that has gotten stale. Unless u is already preserved, I'd go with that one once you're in a pull request page.

Activity

  1. hkdobrev commented on Feb 27, 2018

    @hkdobrev
    Contributor

    👎 because GitHub doesn't have shortcuts for actions which would write to Git. The only write action that could be performed with a keyboard shortcut is submitting a textarea with Cmd/Ctrl+Enter.

    The way updating a stale branch in GitHub works may not work well with certain workflows (it merges master instead of rebasing) and triggering it on a press of a button is quite dangerous.

    I don't think we need shortcuts for something that would post to GitHub and instruct it to write to Git and change the actual tree.

  2. fregante commented on Feb 28, 2018

    @fregante
    Member

    Agreed, I thought it was actually referring to this staleness:

  3. vanniktech commented on Feb 28, 2018

    @vanniktech
    ContributorAuthor

    This would get fixedthough the moment Github does this by default. I find it nonetheless super convenient to have a shortcut to update the branch since often times when using the Always up to date check you run into this case.

  4. fregante commented on Mar 1, 2018

    @fregante
    Member

    the moment Github does this by default

    That's not an excuse for adding it now. Refined GitHub adds feature that GitHub doesn't have, but that doesn't mean that they will add our features. So far they literally only added 3 of our features ever.

  5. vanniktech commented on Mar 1, 2018

    @vanniktech
    ContributorAuthor

    I know but even when pressing the button you have to manually refresh the page.

    We could split this up in two features:

    • hotkey for the button itself
    • when updating a branch refresh the page automatically

    Personally I'm still seeing value in a hotkey for just updating the button without refreshing the page. Let me know what you think and whether I should continue this PR then or not.

  6. fregante commented on Mar 1, 2018

    @fregante
    Member

    Uhm can you please take a screenshot of what button you're talking about exactly?

    How do you "update branch on a stale PR"?

  7. vanniktech commented on Mar 1, 2018

    @vanniktech
    ContributorAuthor

    It's the button on the right. Note that in this PR the branch is up to date and does not need a merge from master.

    screen shot 2018-03-01 at 12 56 13

  8. fregante commented on Mar 1, 2018

    @fregante
    Member

    I'm not sure I've ever seen that one. When does it appear exactly? Is there a repo setting that forces you to update the branch before merging?

    This is the only "update" button I ever see, which appears only if there are conflicts:

    resolve conflicts

  9. vanniktech commented on Mar 1, 2018

    @vanniktech
    ContributorAuthor

    Yes there's a repo setting that enforces this (Require branches to be up to date before merging).

    screen shot 2018-03-01 at 13 02 57

  10. hkdobrev commented on Mar 1, 2018

    @hkdobrev
    Contributor

    This button would merge the default branch in the PR branch with a merge commit if there are no conflicts. I'd still be against doing a shortcut for such an operation. It's not that common, it writes to Git (even though it's not destructive).

  11. fregante commented on Mar 1, 2018

    @fregante
    Member

    Yeah, concern still stands

  12. vanniktech commented on Mar 1, 2018

    @vanniktech
    ContributorAuthor

    I'm using it almost every day and I find it to be 'common'.

    Also what's with the hesitation about shortcuts that do some git action(s)?

  13. vanniktech commented on Mar 3, 2018

    @vanniktech
    ContributorAuthor

    Closing since we can't agree on this and I'll just leave it alive in my fork for me - personally.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions