Skip to content

fix(indexer): handle object-form author in trigger/index-plugins#167

Open
cbeaulieu-gt wants to merge 1 commit into
davepoon:mainfrom
cbeaulieu-gt:fix/author-object-stringification
Open

fix(indexer): handle object-form author in trigger/index-plugins#167
cbeaulieu-gt wants to merge 1 commit into
davepoon:mainfrom
cbeaulieu-gt:fix/author-object-stringification

Conversation

@cbeaulieu-gt
Copy link
Copy Markdown
Contributor

Summary

When a plugin manifest uses the documented object form for author (e.g. { name: "...", email: "..." }), trigger/index-plugins.ts was writing the field directly to a varchar column, producing "[object Object]" in the database.

This applies the same typeof === 'object' guard already present at web-ui/lib/indexer/plugin-indexer.ts:192, extracting author.name when the value is an object and falling back to the repo namespace when the name is absent.

Diff:

- author: plugin.author || repoFullName.split("/")[0],
+ author: typeof plugin.author === 'object'
+   ? plugin.author?.name || repoFullName.split("/")[0]
+   : plugin.author || repoFullName.split("/")[0],

Fixes #166

🤖 Generated by Claude Code on behalf of @cbeaulieu-gt

@cbeaulieu-gt cbeaulieu-gt force-pushed the fix/author-object-stringification branch from c7dbc11 to 66da6ed Compare May 27, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trigger/index-plugins.ts stringifies object-form author into the plugins.author column

1 participant