Skip to content

Conversation

@yakov116
Copy link
Member

@yakov116 yakov116 commented Aug 4, 2020

Updates selectors.

Also fixes the cacheKey. The repo url was not saved so if you had more than one fork it would show on both.


async function getPRs(): Promise<[number, string] | []> {
await elementReady('.repohead + *'); // Wait for the tab bar to be loaded
await elementReady('.pagehead + *, .UnderlineNav-body + *'); // Wait for the tab bar to be loaded
Copy link
Member

@fregante fregante Aug 4, 2020

Choose a reason for hiding this comment

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

Why does this also change repohead? Isn't that part just for GHE now?

Copy link
Member Author

Choose a reason for hiding this comment

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

We need to wait for bar to load. Repohead does not exist anymore.

Copy link
Member Author

Choose a reason for hiding this comment

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

Isn't that part just for GHE now?

I dont remember I copied from bug-tab

Copy link
Member Author

@yakov116 yakov116 Aug 4, 2020

Choose a reason for hiding this comment

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

This exists in GHE with the new selector. If there are specific concerns, @ me and I can check.

Originally posted by @busches in https://github.com/_render_node/MDIzOlB1bGxSZXF1ZXN0UmV2aWV3VGhyZWFkMjg0NzQwMzA4OnYy/pull_request_review_threads/discussion

Copy link
Member Author

Choose a reason for hiding this comment

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

Uh that link did not work. #3361 (comment)

@fregante fregante added the bug label Aug 4, 2020
@fregante fregante requested a review from busches August 4, 2020 14:06
@fregante fregante merged commit 62c3539 into refined-github:master Aug 6, 2020
@yakov116 yakov116 deleted the open-pr-fix branch August 6, 2020 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants