Skip to content

dependabit / detector/src / extractGitHubReferences

Function: extractGitHubReferences() ​

ts
function extractGitHubReferences(content): {
  context: string;
  owner: string;
  repo: string;
}[];

Defined in: packages/detector/src/parsers/readme.ts:152

Extract GitHub repository mentions (owner/repo format)

Parameters ​

ParameterType
contentstring

Returns ​

{ context: string; owner: string; repo: string; }[]

Released under the MIT License.