Commit a32cb12
Add fork context hint to workflow failure conclusion messages (#18529)
* Initial plan
* Add fork context hint to workflow failure conclusion messages
When a gh-aw workflow fails in a fork repository, append a hint to
the failure issue/comment body explaining that secrets from the parent
repository are not inherited.
- Add buildForkContextHint() in handle_agent_failure.cjs that checks
context.payload?.repository?.fork using optional chaining
- Add fork_context to templateContext for both new issue creation and
existing issue comment paths
- Update agent_failure_issue.md and agent_failure_comment.md templates
to include the {fork_context} placeholder
Closes part of #18481
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>1 parent 51b1423 commit a32cb12
3 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
293 | 304 | | |
294 | 305 | | |
295 | 306 | | |
| |||
617 | 628 | | |
618 | 629 | | |
619 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
620 | 634 | | |
621 | 635 | | |
622 | 636 | | |
| |||
635 | 649 | | |
636 | 650 | | |
637 | 651 | | |
| 652 | + | |
638 | 653 | | |
639 | 654 | | |
640 | 655 | | |
| |||
725 | 740 | | |
726 | 741 | | |
727 | 742 | | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
728 | 746 | | |
729 | 747 | | |
730 | 748 | | |
| |||
744 | 762 | | |
745 | 763 | | |
746 | 764 | | |
| 765 | + | |
747 | 766 | | |
748 | 767 | | |
749 | 768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments