export function generatePrBody()

in packages/dependency-graph-integrator/src/file-generator.ts [135:175]


export function generatePrBody(
	branchName: string,
	repoName: string,
	language: DepGraphLanguage,
): string {
	const yamlFilename = depGraphPackageManager[language];

	const body = [
		h2('What does this change?'),
		p(
			`This PR sends your ${depGraphPackageManager[language]} dependencies to GitHub for vulnerability monitoring via Dependabot. ` +
				`The submitted dependencies will appear in the [Dependency Graph](https://github.com/guardian/${repoName}/network/dependencies) ` +
				'on merge to main (it might take a few minutes to update).',
		),
		h2('What do I need to do?'),
		markdownChecklist(
			createPRChecklist(
				branchName,
				stepsForLanguages[`${language}`],
				language,
				yamlFilename,
			),
		),
		h2('Why?'),
		p(
			'If a repository is in production, we need to track its third party dependencies for vulnerabilities. ' +
				'Historically, we have done this using Snyk, but we have migrated to GitHub’s native Dependabot. ' +
				`${language} is not a language that Dependabot supports out of the box, this workflow is required to make it happen. ` +
				'As a result, we have raised this PR on your behalf to add it to the Dependency Graph.',
		),
		h2('How has it been verified?'),
		p(
			'We have tested this workflow, and the process of raising a PR on DevX repos, and have verified that it works. ' +
				'However, we have included some instructions above to help you verify that it works for you. ' +
				'Please do not hesitate to contact DevX Security if you have any questions or concerns.',
		),
		h2(`Further information for ${depGraphPackageManager[language]}`),
		p(languageSpecificInfo[`${language}`]),
	];
	return tsMarkdown(body);
}