![]() |
Release Notes Manager
|
This file defines functions related to text/markdown formatting. More...
Go to the source code of this file.
Functions | |
string | indentAllLinesInString (string s) |
Indents (puts 4 spaces) before all lines in a string. | |
string | replaceHashIdsWithLinks (string pullRequestBody) |
Replaces all plain text hash ids (issue ids and pull request ids (#2777)) with links to these issues/pull requests on GitHub. | |
string | replaceCommitShasWithLinks (string pullRequestBody) |
Replaces all plain text commit SHAs (e.g., 219c2149) with links to these commits on GitHub. | |
string | removeExtraNewLines (string pullRequestBody) |
Remove extra new lines in retrieved PR description to make it look identical to the PR description on GitHub. | |
string | formatPullRequestBody (string pullRequestBody) |
Makes the formatting of the retrieved PR body look like the PR on GitHub. | |
string | convertConventionalCommitTitleToReleaseNoteTitle (string conventionalCommitTitle, CommitTypeMatchResults matchResult, string markdownPrefix) |
Converts the given conventional commit title to a better markdown title that could be used in the release notes Example: "fix: fixed bug X" gets converted to "### Fixed bug X". | |
This file defines functions related to text/markdown formatting.
string convertConventionalCommitTitleToReleaseNoteTitle | ( | string | conventionalCommitTitle, |
CommitTypeMatchResults | matchResult, | ||
string | markdownPrefix ) |
Converts the given conventional commit title to a better markdown title that could be used in the release notes Example: "fix: fixed bug X" gets converted to "### Fixed bug X".
conventionalCommitTitle | The conventional commit title |
matchResult | CommitTypeMatchResult that this title got with it's conventional commit type (has subcategory or no) |
markdownPrefix | The markdown prefix (e.g. -, ##, ###, etc.) that should be added before the release note title |
string formatPullRequestBody | ( | string | pullRequestBody | ) |
Makes the formatting of the retrieved PR body look like the PR on GitHub.
pullRequestBody | The original body/description of the retrieved PR |
string indentAllLinesInString | ( | string | s | ) |
Indents (puts 4 spaces) before all lines in a string.
s | The input string |
string removeExtraNewLines | ( | string | pullRequestBody | ) |
Remove extra new lines in retrieved PR description to make it look identical to the PR description on GitHub.
pullRequestBody | The original body/description of the retrieved PR |
string replaceCommitShasWithLinks | ( | string | pullRequestBody | ) |
Replaces all plain text commit SHAs (e.g., 219c2149) with links to these commits on GitHub.
pullRequestBody | The original body/description of the pull request to do the replacements on |
string replaceHashIdsWithLinks | ( | string | pullRequestBody | ) |
Replaces all plain text hash ids (issue ids and pull request ids (#2777)) with links to these issues/pull requests on GitHub.
pullRequestBody | The original body/description of the pull request to do the replacements on |