Skip to content

Commit

Permalink
Add Zigbee to nRF Connect SDK index (#50)
Browse files Browse the repository at this point in the history
* Add defaultBranch property in the App schema

Add a new property to allow setting a default branch to prevent
from inferring it from a repository.

* nrfconnect: Add Zigbee Add-on to nrfconnect

Add new Zigbee Add on.
  • Loading branch information
FilipZajdel authored Nov 15, 2024
1 parent f13fa69 commit d41192f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
18 changes: 18 additions & 0 deletions index/nrfconnect.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
"name": "nRF Connect",
"description": "Official nRF Connect SDK applications",
"apps": [
{
"name": "ncs-zigbee",
"title": "Zigbee",
"description": "The Zigbee add-on for the nRF Connect SDK provides support for developing Zigbee applications based on the third-party precompiled ZBOSS stack.",
"kind": "template",
"tags": ["zigbee", "connectivity"],
"apps": "samples/*",
"license": "Other",
"releases": [
{
"name": "Zigbee add-on v0.1.0",
"tag": "v0.1.0",
"date": "2024-11-15T12:47:22Z",
"sdk": "v2.8.0"
}
],
"defaultBranch": "v0.1.0"
},
{
"name": "ncs-example-application",
"title": "nRF Connect SDK example application",
Expand Down
4 changes: 4 additions & 0 deletions resources/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
},
"minItems": 1
},
"defaultBranch": {
"type": "string",
"description": "The default git branch that the repository is checked out. Inferred from the repo if missing."
},
"apps": {
"type": "string",
"description": "Glob pattern to find directories containing applications.\n\nApplications need a *.conf file and a CMakeLists.txt file at their root. The glob expressions are used to match directories, so no file pattern is necessary.\n\nBy default, the VS Code extension will assume that there's just a single application sitting at the root of the repo."
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-index-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function fetchRepoData(
description: app.description ?? repoData.description ?? '',
name: app.name,
title: app.title,
defaultBranch: repoData.default_branch,
defaultBranch: app.defaultBranch ?? repoData.default_branch,
isTemplate: repoData.is_template ?? false,
kind: app.kind,
lastUpdate: repoData.updated_at,
Expand Down
6 changes: 5 additions & 1 deletion site/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ export const appMetadataSchema = {
additionalProperties: false,
},
minItems: 1,
}
},
defaultBranch: {
type: 'string',
description: 'The default git branch that the repository is checked out. Inferred from the repo if missing.'
},
},
additionalProperties: false,
required: ['name', 'kind', 'tags', 'releases'],
Expand Down

0 comments on commit d41192f

Please sign in to comment.