Commit e51490d
authored
fix(internal/conventionalcommits): keep first value for repeated footer keys (#2440)
Footer with repeated keys is not supported with current implementation,
this fix let the first value be kept instead of last. Clarify in doc
comment about this limitation.
When onboarding libraries that has generation pr with owlbot and release
with Librarian,
[commit](googleapis/google-cloud-python@34a7916),
the first `Source-Link:` is useful.
Alternative is to refactor `Footer` with type `map[string][]string`.
It's probably not worth it because the keys we care for Librarian are
not expected to repeat. This can be added as enhancement when needed.
For #20801 parent 60b7d38 commit e51490d
File tree
2 files changed
+19
-0
lines changed- internal/conventionalcommits
2 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
349 | 356 | | |
350 | 357 | | |
351 | 358 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
724 | 736 | | |
725 | 737 | | |
726 | 738 | | |
| |||
0 commit comments