MCPcopy
hub / github.com/conwnet/github1s / getSourcegraphUrl

Function getSourcegraphUrl

extensions/github1s/src/helpers/urls.ts:6–9  ·  view source on GitHub ↗
(repo: string, ref: string, path: string, line: number, character: number)

Source from the content-addressed store, hash-verified

4 */
5
6export const getSourcegraphUrl = (repo: string, ref: string, path: string, line: number, character: number): string => {
7 const repoUrl = `https://sourcegraph.com/github.com/${repo}@${ref}`;
8 return `${repoUrl}/-/blob${path}#L${line + 1}:${character + 1}`;
9};

Callers 2

messages.tsFile · 0.90
provideHoverMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected