MCPcopy Create free account
hub / github.com/cursor/community-plugins / onPublishAuto

Function onPublishAuto

apps/cursor/src/components/forms/plugin-form.tsx:153–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 };
152
153 const onPublishAuto = () => {
154 if (!parsed) return;
155 setPublishError(null);
156
157 const components = publishableComponents(editedComponents);
158 if (components.length === 0) {
159 setPublishError("At least one component with a name is required.");
160 return;
161 }
162
163 executeCreate({
164 name: editedName || parsed.name,
165 description: editedDescription || parsed.description,
166 logo: autoLogo ?? parsed.logo ?? null,
167 repository: parsed.repository,
168 homepage: parsed.homepage ?? null,
169 keywords: parsed.keywords,
170 components,
171 });
172 };
173
174 const onPublishManual = () => {
175 setPublishError(null);

Callers

nothing calls this directly

Calls 1

publishableComponentsFunction · 0.85

Tested by

no test coverage detected