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

Function base

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

Source from the content-addressed store, hash-verified

66export function getBranches(): {base: PrReference; head: PrReference} {
67 return {
68 get base() {
69 return parseReference($([
70 '[class*="PullRequestHeaderSummary"] a[class^="PullRequestBranchName"]',
71 // TODO [2026-08-01]: Remove
72 '[class*="PullRequestHeaderSummary"] > [class*="PullRequestHeaderSummary"]',
73 '.base-ref', // TODO [2027-01-01]: Drop after legacy PR files view is removed
74 ]));
75 },
76 get head() {
77 return parseReference(
78 // Doesn't exist in old views

Callers

nothing calls this directly

Calls 1

parseReferenceFunction · 0.85

Tested by

no test coverage detected