Merge pull request #96 from ChristopherHX/string-ids

step ids are strings
This commit is contained in:
Sanjula Ganepola
2024-11-30 15:50:09 -05:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -445,7 +445,7 @@ export class Act {
}, },
steps: [ steps: [
{ {
id: -1, // Special id for setup job id: "--setup-job", // Special id for setup job
name: 'Setup Job', name: 'Setup Job',
status: HistoryStatus.Running, status: HistoryStatus.Running,
date: { date: {
@@ -460,13 +460,13 @@ export class Act {
const isCompleteJobStep = this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps!.length > 1; const isCompleteJobStep = this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps!.length > 1;
if (parsedMessage.stepID || isCompleteJobStep) { if (parsedMessage.stepID || isCompleteJobStep) {
let stepName: string; let stepName: string;
let stepId: number; let stepId: string;
if (!parsedMessage.stepID && isCompleteJobStep) { if (!parsedMessage.stepID && isCompleteJobStep) {
stepName = 'Complete Job'; stepName = 'Complete Job';
stepId = -2; // Special Id for complete job stepId = "--complete-job"; // Special Id for complete job
} else { } else {
stepName = parsedMessage.stage !== 'Main' ? `${parsedMessage.stage} ${parsedMessage.step}` : parsedMessage.step; stepName = parsedMessage.stage !== 'Main' ? `${parsedMessage.stage} ${parsedMessage.step}` : parsedMessage.step;
stepId = parseInt(parsedMessage.stepID[0]); stepId = parsedMessage.stepID[0];
} }
if (this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps![0].status === HistoryStatus.Running) { if (this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps![0].status === HistoryStatus.Running) {

View File

@@ -29,7 +29,7 @@ export interface Job {
} }
export interface Step { export interface Step {
id: number, id: string,
name: string, name: string,
status: HistoryStatus, status: HistoryStatus,
date: { date: {