-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Generates Bitbucket Data Center PR URL and retrieves repoId for cross-forks #4184
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
Conversation
df15357 to
2fea345
Compare
|
@sergeibbb can you rebase this? |
2fea345 to
9872ed6
Compare
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of questions
src/git/remotes/remoteProvider.ts
Outdated
| return this.splitArgPath(this.path); | ||
| } | ||
|
|
||
| protected splitArgPath(argPath: string): [string, string] { | ||
| const index = argPath.indexOf('/'); | ||
| return [argPath.substring(0, index), argPath.substring(index + 1)]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding a new splitArgPath function, what do you think of just making splitPath take a path and change current callers to pass in this.path? That would give the callers more control.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I like it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eamodio : fixed
9872ed6 to
526fe90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
Description
relates to #4142
Checklist
Fixes $XXX -orCloses #XXX -prefix to auto-close the issue that your PR addresses