Commit 14c8340
committed
Fix: config cache corruption when filtering workflows by source repo
The loadAndMatchWorkflows function was mutating the cached YAMLConfig
by replacing its Workflows slice with only the matching workflows.
This caused subsequent webhook handlers for different source repos
to see an incomplete config (only workflows from the first request).
Fix: Create a shallow copy of the config before modifying the Workflows
slice, preserving the cached original for future requests.1 parent dedce1a commit 14c8340
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
554 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
| |||
0 commit comments