Limo
A simple mod manager
Loading...
Searching...
No Matches
changelogentry.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <json/json.h>
9
10
15{
16public:
19 {
20 new_feature = 0,
21 change = 1,
22 fix = 2,
23 no_type = 100
24 };
25
27 ChangelogEntry() = default;
32 ChangelogEntry(const Json::Value& json);
33
38 ChangeType getType() const;
43 std::string getShortDescription() const;
48 std::string getLongDescription() const;
53 int getIssue() const;
58 int getPullRequest() const;
64 bool operator<(const ChangelogEntry& other) const;
65
66private:
70 std::string short_description_;
72 std::string long_description_;
74 int issue_ = -1;
76 int pull_request_ = -1;
77};
std::string getShortDescription() const
Getter for the short description.
Definition changelogentry.cpp:24
ChangelogEntry()=default
Default constructor.
int issue_
GitHub issue addressed by this change, or -1 if not related to any issue.
Definition changelogentry.h:74
ChangeType
Represents the type of change for a changelog entry.
Definition changelogentry.h:19
ChangeType type_
Type of this change.
Definition changelogentry.h:68
ChangeType getType() const
Getter for the change type.
Definition changelogentry.cpp:19
bool operator<(const ChangelogEntry &other) const
Compares this and other by their type.
Definition changelogentry.cpp:44
int pull_request_
GitHub pull request responsible for this change or -1 if not related to a PR.
Definition changelogentry.h:76
int getIssue() const
Getter for the GitHub issue ID.
Definition changelogentry.cpp:34
std::string short_description_
Short description of the change.
Definition changelogentry.h:70
std::string getLongDescription() const
Getter for the long description.
Definition changelogentry.cpp:29
std::string long_description_
Optional: A more detailed description or an explanation.
Definition changelogentry.h:72
int getPullRequest() const
Getter for the GitHub pull request ID.
Definition changelogentry.cpp:39