forked from qt-creator/qt-creator
GitLab: Allow fetching events
Projects that are linked to a GitLab instance will now fetch notifications for this project and print them to the vcs output pane. Change-Id: Ifb960e64b30a260327efb28a3dfd26f6457503a0 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -52,6 +52,7 @@ public:
|
||||
QString name;
|
||||
QString realname;
|
||||
QString email;
|
||||
QString lastLogin;
|
||||
Error error;
|
||||
int id = -1;
|
||||
bool bot = false;
|
||||
@@ -82,11 +83,34 @@ public:
|
||||
PageInformation pageInfo;
|
||||
};
|
||||
|
||||
class Event
|
||||
{
|
||||
public:
|
||||
QString action;
|
||||
QString targetType;
|
||||
QString targetTitle;
|
||||
QString timeStamp;
|
||||
QString pushData;
|
||||
User author;
|
||||
Error error;
|
||||
|
||||
QString toMessage() const;
|
||||
};
|
||||
|
||||
class Events
|
||||
{
|
||||
public:
|
||||
QList<Event> events;
|
||||
Error error;
|
||||
PageInformation pageInfo;
|
||||
};
|
||||
|
||||
namespace ResultParser {
|
||||
|
||||
User parseUser(const QByteArray &input);
|
||||
Project parseProject(const QByteArray &input);
|
||||
Projects parseProjects(const QByteArray &input);
|
||||
Events parseEvents(const QByteArray &input);
|
||||
Error parseErrorMessage(const QString &message);
|
||||
|
||||
} // namespace ResultParser
|
||||
|
||||
Reference in New Issue
Block a user