Release Notes Manager
Loading...
Searching...
No Matches
Format.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <string>
10#include "Enums.h"
11
12using namespace std;
13
14string indentAllLinesInString(string s);
15string replaceHashIdsWithLinks(string pullRequestBody);
16string replaceCommitShasWithLinks(string pullRequestBody);
17string removeExtraNewLines(string pullRequestBody);
18string formatPullRequestBody(string pullRequestBody);
19string convertConventionalCommitTitleToReleaseNoteTitle(string conventionalCommitTitle, CommitTypeMatchResults matchResult,
20 string markdownPrefix);
This file contains all the enums used in the whole program.
CommitTypeMatchResults
Enumeration for the result of matching a commit type (e.g., fix: or fix(GUI):) against any commit typ...
Definition Enums.h:42
string replaceHashIdsWithLinks(string pullRequestBody)
Replaces all plain text hash ids (issue ids and pull request ids (#2777)) with links to these issues/...
Definition Format.cpp:44
string indentAllLinesInString(string s)
Indents (puts 4 spaces) before all lines in a string.
Definition Format.cpp:24
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 rel...
Definition Format.cpp:139
string replaceCommitShasWithLinks(string pullRequestBody)
Replaces all plain text commit SHAs (e.g., 219c2149) with links to these commits on GitHub.
Definition Format.cpp:75
string removeExtraNewLines(string pullRequestBody)
Remove extra new lines in retrieved PR description to make it look identical to the PR description on...
Definition Format.cpp:106
string formatPullRequestBody(string pullRequestBody)
Makes the formatting of the retrieved PR body look like the PR on GitHub.
Definition Format.cpp:123