Skip to content

Commit 63d1783

Browse files
Copilotthst-nordic
andcommitted
fix: Carry manifest field into generated index and west init instructions
Co-authored-by: thst-nordic <14976801+thst-nordic@users.noreply.github.com>
1 parent af65851 commit 63d1783

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/generate-index-json.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ async function fetchRepoData(
184184
name: app.name,
185185
title: app.title,
186186
defaultBranch: app.defaultBranch ?? app.releases[0]?.tag,
187+
manifest: app.manifest,
187188
kind: app.kind,
188189
license: app.license ?? 'Other License',
189190
apps: app.apps,

site/src/app/InstructionsDialog.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ function InstructionsDialog({ app, sha, close }: Props): JSX.Element {
4444
<CodeBlock
4545
text={`west init -m "${app.repo}" --mr ${
4646
sha ?? '<latest tag>'
47+
}${
48+
app.manifest && app.manifest !== 'west.yml'
49+
? ` --mf ${app.manifest}`
50+
: ''
4751
}`}
4852
/>
4953
</Step>

0 commit comments

Comments
 (0)