MCPcopy Create free account
hub / github.com/github/awesome-copilot / validateRepository

Function validateRepository

eng/external-plugin-validation.mjs:194–203  ·  view source on GitHub ↗
(repository, prefix, errors, required)

Source from the content-addressed store, hash-verified

192}
193
194function validateRepository(repository, prefix, errors, required) {
195 if (repository === undefined) {
196 if (required) {
197 errors.push(`${prefix}: "repository" is required`);
198 }
199 return;
200 }
201
202 validateHttpsUrl(repository, "repository", prefix, errors, { githubOnly: true });
203}
204
205function validateHomepage(homepage, prefix, errors) {
206 if (homepage === undefined) {

Callers 1

validateExternalPluginFunction · 0.85

Calls 1

validateHttpsUrlFunction · 0.85

Tested by

no test coverage detected