MCPcopy
hub / github.com/refined-github/refined-github / head

Function head

source/github-helpers/pr-branches.ts:76–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 ]));
75 },
76 get head() {
77 return parseReference(
78 // Doesn't exist in old views
79 $$optional('[class*="PullRequestHeaderSummary"] a[class^="PullRequestBranchName"]')?.[1]
80 ?? $([
81 // TODO [2026-08-01]: Remove
82 '[class*="PullRequestHeaderSummary"] * [class*="PullRequestHeaderSummary"]',
83 '.head-ref', // TODO [2027-01-01]: Drop after legacy PR files view is removed
84 ]),
85 );
86 },
87 };
88}

Callers

nothing calls this directly

Calls 1

parseReferenceFunction · 0.85

Tested by

no test coverage detected