Skip to content

Add "ioBroker" keyword to generated package.json#1283

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/update-package-json-keywords
Draft

Add "ioBroker" keyword to generated package.json#1283
Copilot wants to merge 3 commits intomasterfrom
copilot/update-package-json-keywords

Conversation

Copy link
Contributor

Copilot AI commented Jan 11, 2026

PR Checklist:

  • Provide a meaningful description to this PR or mention which issues this fixes.
  • Ensure the project builds with npm run build
  • Add tests for your change. This includes negative tests (i.e. inputs that need to fail) as well as baseline tests (i.e. how should the directory structure look like?).
  • Run the test suite with npm test
  • If there are baseline changes, review them and make a separate commit for them with the comment "accept baselines" if they are desired changes
  • If you added a required option, also add it to the template creation (.github/create_templates.ts)
  • Add a detailed migration description to docs/updates explaining what the user needs to do when manually updating an existing project
  • Add your changes to CHANGELOG.md (referencing the migration description and this PR or the issue you fixed)

Description:

Generated adapters lacked the "ioBroker" keyword in package.json, triggering W0040 warnings during adapter checks.

Changes:

  • Modified transformKeywords() to prepend "ioBroker" when not present (case-insensitive check)
  • Updated default keywords from ["template", "automation", "IoT", "integration"] to include "ioBroker" as first element
  • Added 6 test cases covering keyword transformation, deduplication, and case handling
  • Regenerated 23 baseline files to reflect keyword changes

Example behavior:

// User provides custom keywords
transformKeywords("automation, IoT")
// Returns: ["ioBroker", "automation", "IoT"]

// User already includes ioBroker (any case)
transformKeywords("iobroker, custom")
// Returns: ["iobroker", "custom"]  // No duplication

// Default keywords (no user input)
getDefaultAnswer("keywords")
// Returns: ["ioBroker", "template", "automation", "IoT", "integration"]
Original prompt

This section details on the original issue you should resolve

<issue_title>[Enhancement] Keywords within package.json should contain ioBroker</issue_title>
<issue_description>[W0040] "keywords" within package.json should contain "ioBroker"

Please add 'ioBroker' to keywords section of package.json (noct io-package.json!)</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Jan 11, 2026
Copilot AI and others added 2 commits January 11, 2026 11:41
Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
Copilot AI changed the title [WIP] Add 'ioBroker' to keywords in package.json Add "ioBroker" keyword to generated package.json Jan 11, 2026
Copilot AI requested a review from Apollon77 January 11, 2026 11:56
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.

[Enhancement] Keywords within package.json should contain ioBroker

2 participants