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

Restore quick-new-issue on Global navigation update #6486

Merged
merged 4 commits into from
Apr 10, 2023
Merged

Conversation

fregante
Copy link
Member

@fregante fregante commented Apr 10, 2023

@fregante fregante added meta Related to Refined GitHub itself bug and removed meta Related to Refined GitHub itself labels Apr 10, 2023
@fregante fregante marked this pull request as draft April 10, 2023 09:21
@fregante fregante changed the title Restore quick-new-issue on new style Restore quick-new-issue on Global navigation update Apr 10, 2023
@fregante fregante marked this pull request as ready for review April 10, 2023 10:32
@fregante fregante enabled auto-merge (squash) April 10, 2023 10:33
@fregante fregante merged commit 7b3b745 into main Apr 10, 2023
9 checks passed
@fregante fregante deleted the quick-new-issue branch April 10, 2023 10:34
@@ -177,7 +177,7 @@ export function shouldFeatureRun({

export async function isArchivedRepoAsync(): Promise<boolean> {
// Load the bare minimum for `isArchivedRepo` to work
await elementReady('#repository-container-header');
await elementReady('main > div');
Copy link
Member Author

Choose a reason for hiding this comment

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

This should work for both. The first div in main appears to always be the flash banner itself or some other empty element if the banner is missing.

I can't use main because that would wait for the whole page before ever resolving, whether the banner exists or not

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.

quick-new-issue broken on "Global navigation update"
1 participant