Skip to content

Add clone-branch feature - #2896

Merged
fregante merged 66 commits into
refined-github:masterfrom
yakov116:clone_branch
Mar 22, 2020
Merged

fregante merged 66 commits into
refined-github:masterfrom
yakov116:clone_branch

Conversation

@yakov116

@yakov116 yakov116 commented Mar 15, 2020 •

Copy link
Copy Markdown
Member

Closes #2895

image

Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
yakov116 and others added 2 commits March 15, 2020 18:43
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
@szmarczak

Copy link
Copy Markdown

What about making a Clone branch button next to the New pull request one? It's quite easy to make a misclick and accidentally delete the branch.

@fregante

fregante commented Mar 15, 2020 •

Copy link
Copy Markdown
Member

@szmarczak I think it just needs to be spaced better and placed between the 2 buttons. Deletion can be undone

@szmarczak

Copy link
Copy Markdown

Sure, works too.

@yakov116

yakov116 commented Mar 16, 2020 •

Copy link
Copy Markdown
Member Author

image

@yakov116

Copy link
Copy Markdown
Member Author

@szmarczak what would you put as the description?

Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread readme.md Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Since now `createBranch` is called once and it's easier to keep out
Comment thread source/features/clone-branch.tsx Resolved
yakov116 and others added 3 commits March 19, 2020 20:47
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Resolved
Comment thread source/features/clone-branch.tsx Outdated
let newBranchName = prompt('Enter the new branch name')?.trim();

const spinner = loadingIcon();
spinner.classList.add('mr-2');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sdf

The spacing isn't right. Other than this, it seems to work well 👍

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I know this happened when we switched to using the position. I will try later tonight.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

oh.... Its supposed to be ml-2

Comment thread source/features/clone-branch.tsx Resolved
@fregante
fregante merged commit 6c46766 into refined-github:master Mar 22, 2020
@yakov116
yakov116 deleted the clone_branch branch March 22, 2020 22:23
@fregante fregante mentioned this pull request Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Add a button to clone branches

4 participants