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

fix: visualize diffs of PlantUML descriptions which include both renaming and changes #267

Merged
merged 4 commits into from
Oct 30, 2019

Conversation

kumachan-mis
Copy link
Collaborator

@kumachan-mis kumachan-mis commented Oct 30, 2019

close #156
will support #105 #106 #266

console.log(filePaths);
if (filePaths.length == 1) return [filePaths[0], filePaths[0]];
if (filePaths.length == 2) return [filePaths[0], filePaths[1]];
else return ['', ''];
Copy link
Member

Choose a reason for hiding this comment

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

else should be omitted.

filePath += separator;
}
}
console.log(filePaths);
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove this debug code?

@@ -74,9 +74,9 @@ export class GitHubPullRequestDiffFinder implements DiffFinder {
return diffs;
}

private getBaseHeadBranchNames($root: JQuery<Node>): string[] {
private getBaseHeadBranchNames($root: JQuery<Node>): [string, string] {
Copy link
Member

Choose a reason for hiding this comment

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

👍

const tableObjectTagName = 'div.TableObject-item.TableObject-item--primary';
const getTagName = (baseOrHead: string): string =>
const getTagName = (baseOrHead: 'base' | 'head'): string =>
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

@exKAZUu exKAZUu left a comment

Choose a reason for hiding this comment

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

Overall good 👍 Please deal with my two review comments.

Copy link
Member

@exKAZUu exKAZUu left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@exKAZUu exKAZUu merged commit 078770b into master Oct 30, 2019
@exKAZUu exKAZUu deleted the 156_renaming_pr branch October 30, 2019 04:56
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.

fix: visualize diffs of PlantUML descriptions which include both renaming and changes
2 participants