Skip to content

Commit 86c7370

Browse files
authored
[AUTOREVERT] Ask for claude bot to provide user guidance (#7692)
known limitations - does not work with forked PRs, but anthropic [seems to be working](anthropics/claude-code-action#821) on it but the output [looks nice](pytorch/pytorch#173119 (comment)) Signed-off-by: Jean Schmidt <contato@jschmidt.me>
1 parent 1059b3d commit 86c7370

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

aws/lambda/pytorch-auto-revert/pytorch_auto_revert/signal_actions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,11 @@ def _comment_issue_pr_revert(
727727
+ "\n"
728728
+ breaking_notification_msg
729729
+ "\nPlease investigate and fix the issues."
730+
+ "\n"
731+
+ "@claude Can you please read this revert comment, follow the links and "
732+
+ "read the errors, to then give a brief diagnostics on the cause of the "
733+
+ "error? If you judge the error to be legitimate reason for a revert, "
734+
+ "please provide brief guidance on how the author could fix it."
730735
)
731736
logging.warning(
732737
"[v2][action] revert for sha %s: requested pytorchbot revert in PR #%d",

0 commit comments

Comments
 (0)