Use last branch same as last project
This commit is contained in:
@@ -354,6 +354,7 @@ class WakaTimeCore {
|
||||
};
|
||||
|
||||
payload.project = heartbeat.project ?? '<<LAST_PROJECT>>';
|
||||
payload.branch= heartbeat.branch ?? '<<LAST_BRANCH>>';
|
||||
|
||||
return payload;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ export interface Datum {
|
||||
export interface SendHeartbeat {
|
||||
hostname: string;
|
||||
project: string | null;
|
||||
branch: string | null;
|
||||
url: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user