Skip to content

Commit ebddfe3

Browse files
chore: print log when skipping github run (#7818) (#7819)
Co-authored-by: Klesh Wong <zhenmian.huang@merico.dev>
1 parent cb51897 commit ebddfe3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/plugins/github/tasks/cicd_run_collector.go

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ var CollectRunsMeta = plugin.SubTaskMeta{
5858

5959
func CollectRuns(taskCtx plugin.SubTaskContext) errors.Error {
6060
data := taskCtx.GetData().(*GithubTaskData)
61+
log := taskCtx.GetLogger()
6162
collector, err := helper.NewStatefulApiCollectorForFinalizableEntity(helper.FinalizableApiCollectorArgs{
6263
RawDataSubTaskArgs: helper.RawDataSubTaskArgs{
6364
Ctx: taskCtx,
@@ -100,6 +101,8 @@ func CollectRuns(taskCtx plugin.SubTaskContext) errors.Error {
100101
return nil, errors.Convert(err)
101102
}
102103
filteredRuns = append(filteredRuns, json.RawMessage(runJSON))
104+
} else {
105+
log.Info("Skipping run{id: %d, number: %d} with status %s", run.ID, run.RunNumber, run.Status)
103106
}
104107
}
105108
return filteredRuns, nil

0 commit comments

Comments
 (0)