`quick-mention` - Support copilot by fregante · Pull Request #9712 · refined-github/refined-github · GitHub
Skip to content

quick-mention - Support copilot#9712

Merged
fregante merged 1 commit into
mainfrom
quick-copilot
Jun 7, 2026
Merged

quick-mention - Support copilot#9712
fregante merged 1 commit into
mainfrom
quick-copilot

Conversation

@fregante

@fregante fregante commented Jun 7, 2026

Copy link
Copy Markdown
Member

@github-actions github-actions Bot added the bug label Jun 7, 2026
@fregante fregante enabled auto-merge (squash) June 7, 2026 09:33
@fregante fregante merged commit d21f942 into main Jun 7, 2026
13 checks passed
@SunsetTechuila

Copy link
Copy Markdown
Contributor

@fregante fregante deleted the quick-copilot branch June 17, 2026 16:16

function mentionUser({delegateTarget: button}: DelegateEvent): void {
const userMention = button.parentElement!.querySelector('img')!.alt;
const userMention = getCommentAuthor(button.parentElement!);

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.

Is it because this doesn't need parentElement or because getCommentAuthor doesn't have the right selector in closest?

@SunsetTechuila SunsetTechuila Jun 18, 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.

Is it because this doesn't need parentElement or because getCommentAuthor doesn't have the right selector in closest?

It is because getCommentAuthor looks for a comment container, which is sibling to the avatar, so closestElement doesn't work

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-mention: Expected element not found: img

2 participants