Use last branch same as last project

This commit is contained in:
Alan Hamlett
2023-10-17 21:14:35 +02:00
parent 562189c9f1
commit c57818bec7
3 changed files with 4 additions and 1 deletions

View File

@@ -354,6 +354,7 @@ class WakaTimeCore {
};
payload.project = heartbeat.project ?? '<<LAST_PROJECT>>';
payload.branch= heartbeat.branch ?? '<<LAST_BRANCH>>';
return payload;
}

View File

@@ -30,6 +30,7 @@ export interface Datum {
export interface SendHeartbeat {
hostname: string;
project: string | null;
branch: string | null;
url: string;
}

View File

@@ -28,7 +28,8 @@ export interface User {
last_heartbeat_at: string;
last_plugin: string;
last_plugin_name: string;
last_project: string;
last_project?: string;
last_branch?: string;
location: string;
logged_time_public: boolean;
modified_at: string;