Skip to content

default-branch-button unreleased-commits - Restore features - #9425

Merged
fregante merged 4 commits into
mainfrom
default-branch-buttond
May 10, 2026
Merged

fregante merged 4 commits into
mainfrom
default-branch-buttond

Conversation

@fregante fregante added the bug label May 10, 2026
@fregante fregante changed the title Update selectors.ts default-branch-buttons unrelease-commits - Restore feature May 10, 2026
@fregante fregante changed the title default-branch-buttons unrelease-commits - Restore feature default-branch-buttons unrelease-commits - Restore features May 10, 2026
Comment on lines +45 to +52
// Apply here instead of `excludes` due to React loading:
// 1. Visit branch
// 2. Click "Code" repo tab
// 3. You're on `main` but the button is wrapped
// TODO: Move to excludes after https://github.com/refined-github/refined-github/issues/6554
if (await isDefaultBranch()) {
return;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Image

@fregante

fregante commented May 10, 2026 •

Copy link
Copy Markdown
Member Author

Merging. If you find issues, comments welcome. I'll release 26.5.10 after these:

In ~3 hours I'll send a commit fixing them and creating the release

@fregante
fregante merged commit d213fed into main May 10, 2026
13 checks passed
@fregante
fregante deleted the default-branch-buttond branch May 10, 2026 13:02
Comment on lines +91 to +93
// Remove bad native link https://github.com/refined-github/refined-github/issues/8662#issuecomment-4126171014
// It only appears in the sidebar
$optional('[class*="prc"][aria-label="View file on default branch"]')?.remove();

@SunsetTechuila SunsetTechuila May 10, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

#9148 (comment) and the next one

@SunsetTechuila SunsetTechuila May 10, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The selector is wrong

@fregante fregante changed the title default-branch-buttons unrelease-commits - Restore features default-branch-buttons unreleased-commits - Restore features May 10, 2026
@fregante fregante changed the title default-branch-buttons unreleased-commits - Restore features default-branch-button unreleased-commits - Restore features May 10, 2026
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.

unreleased-commits broken default-branch-button broken default-branch-button implemented by GitHub

2 participants