This {getType()} exists on the default branch.
, ); } async function getGitObjectHistoryLink(): Promise{lastVersion} was {verb} ({permalink}) - {commitHistory}.
); } async function showGitObjectHistory(): PromiseYou can also try to view the detached standalone commit.
, ); } function initRepoFile(signal: AbortSignal): void { observe('#repos-header-breadcrumb-wide-heading + ol a', crossIfNonExistent, {signal}); observe('main div[data-testid="eror-404-description"]', showGitObjectHistoryOnRepo, {signal}); // "eror" as misspelled by GitHub } void features.add(import.meta.url, { asLongAs: [ pageDetect.is404, () => parseCurrentURL().length > 1, ], awaitDomReady: true, // Small page init: onetime(showMissingPart), }, { asLongAs: [ pageDetect.is404, ], include: [ pageDetect.isSingleFile, pageDetect.isRepoTree, pageDetect.isEditingFile, ], awaitDomReady: true, // Small page init: onetime(init), }, { include: [ pageDetect.isPRCommit404, ], init: onetime(initPRCommit), }, { include: [ pageDetect.isRepoFile404, ], init: initRepoFile, }); /* Test URLs: - 404 issue: https://github.com/refined-github/refined-github/issues/888888 - 404 file: https://github.com/refined-github/refined-github/blob/main/source/features/a-horse-with-no-name.tsx - 410 file: https://github.com/refined-github/refined-github/blob/main/extension/content.js - 404 ref: https://github.com/refined-github/refined-github/blob/eggs-for-branch/package.json */