MCPcopy Index your code
hub / github.com/refined-github/refined-github / addButton

Function addButton

source/features/quick-mention.tsx:58–74  ·  view source on GitHub ↗
(avatar: HTMLElement)

Source from the content-addressed store, hash-verified

56}
57
58function addButton(avatar: HTMLElement): void {
59 const userMention = getCommentAuthor(avatar);
60 avatar.after(
61 tooltipped(
62 {
63 label: `Mention ${prefixUserMention(userMention)} in a new comment`,
64 direction: 'e',
65 },
66 <button
67 type="button"
68 className="rgh-quick-mention btn-link"
69 >
70 <ReplyIcon />
71 </button>,
72 ),
73 );
74}
75
76function addButtonPr(avatar: HTMLElement): void {
77 const timelineItem = closestElement([

Callers 2

addButtonPrFunction · 0.70
addButtonIssueFunction · 0.70

Calls 3

getCommentAuthorFunction · 0.85
tooltippedFunction · 0.85
prefixUserMentionFunction · 0.85

Tested by

no test coverage detected