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

Function getConversationNumber

source/github-helpers/index.ts:15–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13export const {getRepositoryInfo: getRepo, getCleanPathname, getLoggedInUser} = pageDetect.utils;
14
15export function getConversationNumber(): number | undefined {
16 const [, _owner, _repo, type, prNumber] = location.pathname.split('/');
17 return (type === 'pull' || type === 'issues') && Number(prNumber) ? Number(prNumber) : undefined;
18}
19
20export const isMac = navigator.userAgent.includes('Macintosh');
21

Callers 13

index.test.tsFile · 0.85
preventPrCommitLinkLossFunction · 0.85
shortenLinkFunction · 0.85
getPrInfoFunction · 0.85
formatPrCommitTitleFunction · 0.85
updatePrTitleFunction · 0.85
validatePrTitleFunction · 0.85
quickApproveFunction · 0.85
addForPrFunction · 0.85
fetchIssueDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected