Browse Source

fix(copilot): Fix copilot action name (#78772)

The name was over 20 characters, causing the GitHub API to error. This
PR shortens the name.
Rohan Agarwal 5 months ago
parent
commit
58c7cebc3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sentry/integrations/github/tasks/pr_comment.py

+ 1 - 1
src/sentry/integrations/github/tasks/pr_comment.py

@@ -222,7 +222,7 @@ def github_comment_workflow(pullrequest_id: int, project_id: int):
     github_copilot_actions = (
         [
             {
-                "name": f"Root cause issue {i} with Sentry",
+                "name": f"Root cause #{i + 1}",
                 "type": "copilot-chat",
                 "prompt": f"@sentry root cause issue {str(issue_id)} with PR URL https://github.com/{repo.name}/pull/{str(pullrequest_id)}",
             }