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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor list-prs-for-file #5312

Merged
merged 14 commits into from
Jan 21, 2022
Merged

Refactor list-prs-for-file #5312

merged 14 commits into from
Jan 21, 2022

Conversation

kidonng
Copy link
Member

@kidonng kidonng commented Jan 15, 2022

You are suggested to review each individual commit.

Test URLs

https://github.com/refined-github/refined-github/edit/lint/source/features/index.tsx

Screenshot

For "Fix: add back .BtnGroup-item class":

Before After
Screen Shot 2022-01-16 at 01 05 11 Screen Shot 2022-01-16 at 01 39 02

@kidonng kidonng changed the title Improvement: use more specific path selector Refactor list-prs-for-file Jan 16, 2022
source/features/list-prs-for-file.tsx Outdated Show resolved Hide resolved
source/features/list-prs-for-file.tsx Show resolved Hide resolved
getPrsByFile(),
]);
let prs = prsByFile[path];
let prs = await getPrsForCurrentPath();
Copy link
Member Author

@kidonng kidonng Jan 20, 2022

Choose a reason for hiding this comment

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

path is used in other places of initEditing so this can not be made into a standalone getPrsForCurrentPath function.

This is not duplicating a lot of code so I think it's fine to keep it as is.

Reverting last two commits.

@kidonng kidonng merged commit 1006148 into main Jan 21, 2022
@kidonng kidonng deleted the list-prs-for-file branch January 21, 2022 11:47
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.

None yet

3 participants