Skip to content

Commit

Permalink
Use code block for issue submission (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyballentine authored May 18, 2024
1 parent ae997d6 commit 40f96ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/models/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,11 @@ export default function Page({ modelId, similar: staticSimilar, modelData: stati
}
const path =
'https://github.com/OpenModelDB/open-model-database/issues/new';
const modelJson = JSON.stringify(model, null, 2);
const codeBlock = `\`\`\`json\n${modelJson}\n\`\`\``;
const queryParams = new URLSearchParams({
title: `[MODEL ADD REQUEST] ${model.name}`,
body: JSON.stringify(model, null, 2),
body: codeBlock,
template: 'model-add-request.md',
});
const url = `${path}?${queryParams.toString()}`;
Expand Down

0 comments on commit 40f96ee

Please sign in to comment.