Commit a5ed0fc
Generate conventional-commits PR titles + repo-existing labels
Surfaced during the fix-mode PoC against master/v1.6/v1.7. The agent
opened three valid fix PRs (#4442, #4443, #4444) but with generic
'ci-mx: PoC fix CI failures on <branch>' titles and zero labels. The
repo convention is 'ci: <description>' with optional '(release/vX.Y)'
suffix, plus flat labels like ci/cni/cns/cilium/dependencies.
Fix: in the Fix-PR creation section, generate:
- Title: ci: <description> [(release/vX.Y) | for #N [(release/vX.Y)]]
where <description> is 're-render Dockerfiles', 'resolve govulncheck
findings', or 're-render Dockerfiles and resolve govulncheck
findings' depending on which playbooks committed.
- Labels: always 'ci'; add 'dependencies' when govulncheck ran; add
area labels (cni, cns, cilium) by matching paths in the commit's
diff against a small known-area map. Filter the final set against
'gh label list' so labels that don't exist in the repo are skipped
(no auto-creation).
The three existing PoC PRs were retitled and relabeled to match.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ad56b89 commit a5ed0fc
1 file changed
Lines changed: 69 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
531 | 538 | | |
532 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
533 | 554 | | |
534 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
535 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
536 | 600 | | |
537 | 601 | | |
538 | 602 | | |
| |||
545 | 609 | | |
546 | 610 | | |
547 | 611 | | |
548 | | - | |
| 612 | + | |
549 | 613 | | |
550 | 614 | | |
551 | 615 | | |
552 | 616 | | |
553 | 617 | | |
554 | 618 | | |
555 | 619 | | |
556 | | - | |
| 620 | + | |
| 621 | + | |
557 | 622 | | |
558 | 623 | | |
559 | 624 | | |
| |||
0 commit comments