Commit 46642ce
committed
fix: use slug-aware matching in MergeDeep.processArrays for teams
Teams in YAML use slug format (e.g. name: "my-team") while the GitHub
API returns display name (e.g. name: "My Team") with a separate slug
field. This caused phantom diffs in NOP mode: teams reported as
additions + deletions when no actual changes exist.
The fix adds slug-aware matching in processArrays addition/deletion
filters. When a target item has a slug field, it's compared against
the source name (which is the slug in safe-settings convention).
This is backward compatible: items without slug (labels, rulesets)
continue to match by name as before.1 parent 254bad3 commit 46642ce
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
0 commit comments