MCPcopy Create free account
hub / github.com/codename-co/stack / propose

Function propose

packages/scripts/maintenance/sync-metadata.ts:149–161  ·  view source on GitHub ↗
(field: string, from: unknown, to: string | number)

Source from the content-addressed store, hash-verified

147 * describing the repository rather than the software.
148 */
149 const propose = (field: string, from: unknown, to: string | number) => {
150 const change = { field, from, to };
151 if (AUTO_APPLIED.has(field) || from == null || from === "") {
152 changes.push(change);
153 return;
154 }
155 if (ACCEPTED.has(`${entry.slug}:${field}`)) {
156 changes.push(change);
157 return;
158 }
159 if (isRejected(OVERRIDES, entry.slug, field, String(to))) return;
160 suggestions.push(change);
161 };
162
163 if (meta) {
164 // repository — upstream resolves renames/transfers, so a differing

Callers 1

syncEntryFunction · 0.85

Calls 1

isRejectedFunction · 0.90

Tested by

no test coverage detected