mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	feat: update job info
This commit is contained in:
		@@ -144,11 +144,8 @@ func ViewPost(ctx *context_module.Context) {
 | 
			
		||||
		resp.StateData.CurrentJobInfo.Title = current.Name
 | 
			
		||||
		resp.StateData.CurrentJobSteps = make([]ViewJobStep, 0)
 | 
			
		||||
		resp.LogsData.StreamingLogs = make([]ViewStepLog, 0, len(req.StepLogCursors))
 | 
			
		||||
		if task == nil {
 | 
			
		||||
			resp.StateData.CurrentJobInfo.Detail = "wait to be pick up by a runner"
 | 
			
		||||
		} else {
 | 
			
		||||
			resp.StateData.CurrentJobInfo.Detail = "TODO: more detail info" // TODO: more detail info
 | 
			
		||||
 | 
			
		||||
		resp.StateData.CurrentJobInfo.Detail = current.Status.String()
 | 
			
		||||
		if task != nil {
 | 
			
		||||
			steps := bots.FullSteps(task)
 | 
			
		||||
 | 
			
		||||
			resp.StateData.CurrentJobSteps = make([]ViewJobStep, len(steps))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user