Skip to content

Fix parsing of head branch of deleted repos - #8958

Closed
SunsetTechuila wants to merge 1 commit into
mainfrom
branches
Closed

Fix parsing of head branch of deleted repos#8958
SunsetTechuila wants to merge 1 commit into
mainfrom
branches

Conversation

@SunsetTechuila

@SunsetTechuila SunsetTechuila commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

This is not actually enough to fix the issue. The value of nextElementSibling!.textContent is "", since it's a copy button, not a tooltip - try executing getBranches().head in the DevTools console. This applies to both old and new headers. What should we do?

Test URLs

https://github.com/refined-github/refined-github/pull/3227/checks (Old header) Updated

#3227

Screenshot

@SunsetTechuila SunsetTechuila changed the title Fix head branch of deleted repos getting Fix parsing of head branch of the deleted repos Feb 8, 2026
@SunsetTechuila SunsetTechuila changed the title Fix parsing of head branch of the deleted repos Fix parsing of head branch of deleted repos Feb 8, 2026
@SunsetTechuila

Copy link
Copy Markdown
Contributor Author

@fregante this one needs your attention

@fregante

Copy link
Copy Markdown
Member

Not sure what you're asking. If it fixes something, merge it. If an alternative fix is needed, find it 😅 or leave the issue open.

The value of nextElementSibling!.textContent is ""

therefore an alternative should be found, just like for every other piece of code that no longer works.

@SunsetTechuila

Copy link
Copy Markdown
Contributor Author

therefore an alternative should be found, just like for every other piece of code that no longer works.

I'm asking if you have any suggestions

@fregante

Copy link
Copy Markdown
Member

Not at this moment 😇

@SunsetTechuila

Copy link
Copy Markdown
Contributor Author

Then I'll create an issue instead

@SunsetTechuila
SunsetTechuila deleted the branches branch March 10, 2026 12:06
const {title, textContent, nextElementSibling} = referenceElement;

// In the old React version, we have a `title` attribute but it's used to mark deleted repos instead
// In the React version, we have a `title` attribute but it's used to mark deleted repos instead

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

test comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants