Signed-off-by: Anirudh Oppiliappan anirudh@tangled.org
knotserver/git/diff.go
knotserver/git/diff.go
This file has not been changed.
+6
-6
knotserver/internal.go
+6
-6
knotserver/internal.go
···
299
299
NewSha: line.NewSha.String(),
300
300
}
301
301
302
-
changedFiles, err := gr.ChangedFilesBetween(line.OldSha.String(), line.NewSha.String())
303
-
if err != nil {
304
-
return fmt.Errorf("getting changed files: %w", err)
305
-
}
306
-
307
302
compiler := workflow.Compiler{
308
303
Trigger: tangled.Pipeline_TriggerMetadata{
309
304
Kind: string(workflow.TriggerKindPush),
···
314
309
Repo: repoName,
315
310
},
316
311
},
317
-
ChangedFiles: changedFiles,
318
312
}
319
313
320
314
cp := compiler.Compile(compiler.Parse(pipeline))
···
380
374
RepoDid: &repoDid,
381
375
}
382
376
377
+
changedFiles, err := gr.ChangedFilesBetween(line.OldSha.String(), line.NewSha.String())
378
+
if err != nil {
379
+
return fmt.Errorf("getting changed files: %w", err)
380
+
}
381
+
383
382
compiler := workflow.Compiler{
384
383
Trigger: tangled.Pipeline_TriggerMetadata{
385
384
Kind: string(workflow.TriggerKindPush),
386
385
Push: &trigger,
387
386
Repo: triggerRepo,
388
387
},
388
+
ChangedFiles: changedFiles,
389
389
}
390
390
391
391
cp := compiler.Compile(compiler.Parse(pipeline))
History
2 rounds
0 comments
anirudh.fi
submitted
#1
1 commit
expand
collapse
knotserver/git: compute changed files between commits and wire into workflow compiler
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
no conflicts, ready to merge
expand 0 comments
anirudh.fi
submitted
#0
1 commit
expand
collapse
knotserver/git: compute changed files between commits and wire into workflow compiler
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>