Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: SJIP-569 update readme content #108

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
/* eslint-disable no-console */
import noop from 'lodash/noop';

Expand Down Expand Up @@ -30,7 +31,7 @@ export default async function generateFiles(
accessToken: string,
): Promise<void> {
const wb = new xl.Workbook();
let readmeContent = '';
let readmeContent = `# INCLUDE Biospecimen Request Report - README \n\nThis README provides information on accessing and requesting biospecimens from the INCLUDE biobanks. The report generated will provide contact information for each biobank along with their respective sheet listing all selected samples available for request. To initiate the process, please follow the instructions per study below. \n\n## Instructions for Biospecimen Requests per study\n\n`;
const extendedConfig = await getExtendedConfigs(es, projectId, normalizedConfigs.indexName);
const workSheets = new Map<string, any>([]);
const workSheetConfigs = new Map<string, SheetConfig>([]);
Expand Down Expand Up @@ -68,7 +69,8 @@ export default async function generateFiles(

// Add biorepository request note to README content for the study
if ((row as any).study.note) {
readmeContent += `${(row as any).study.note}\n`;
readmeContent += `### ${study_code}\n\n`;
readmeContent += `${(row as any).study.note}\n\n`;
}
}

Expand Down