Skip to content

Commit 3f8fd12

Browse files
Merge remote-tracking branch 'origin/release_candidate_v1_0_9' into AIML-125-external-agent-generate-fixes-add-claude-PR-support
# Conflicts: # src/git_handler.py # test/test_git_handler.py
2 parents 09ede0b + a35e165 commit 3f8fd12

13 files changed

+931
-438
lines changed

README.md

Lines changed: 9 additions & 389 deletions
Large diffs are not rendered by default.

docs/claude_code.md

Lines changed: 268 additions & 0 deletions
Large diffs are not rendered by default.
File renamed without changes.

docs/github_copilot.md

Lines changed: 266 additions & 0 deletions
Large diffs are not rendered by default.

docs/smartfix_coding_agent.md

Lines changed: 333 additions & 0 deletions
Large diffs are not rendered by default.

src/closed_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _extract_remediation_info(pull_request: dict) -> tuple:
8383
debug_log(f"Extracted external issue number from branch name: {issue_number}")
8484
else:
8585
debug_log(f"Could not extract issue number from branch name: {branch_name}")
86-
86+
8787
# Set the external coding agent in telemetry based on branch prefix
8888
coding_agent = "EXTERNAL-CLAUDE-CODE" if branch_name.startswith("claude/") else "EXTERNAL-COPILOT"
8989
debug_log(f"Determined external coding agent to be: {coding_agent}")

src/coding_agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
class CodingAgents(Enum):
2424
SMARTFIX = "SMARTFIX"
2525
GITHUB_COPILOT = "GITHUB_COPILOT"
26-
CLAUDE_CODE = "CLAUDE_CODE"
26+
CLAUDE_CODE = "CLAUDE_CODE"

src/config.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,13 @@ def _get_coding_agent(self) -> str:
171171
CodingAgents[coding_agent.upper()]
172172
return coding_agent.upper()
173173
except (KeyError, ValueError):
174-
_log_config_message(f"Warning: Invalid CODING_AGENT '{coding_agent}'. Must be one of {[agent.name for agent in CodingAgents]}. Defaulting to '{CodingAgents.SMARTFIX.name}'.", is_warning=True)
174+
agent_names = [agent.name for agent in CodingAgents]
175+
default_name = CodingAgents.SMARTFIX.name
176+
_log_config_message(
177+
f"Warning: Invalid CODING_AGENT '{coding_agent}'. Must be one of {agent_names}. "
178+
f"Defaulting to '{default_name}'.",
179+
is_warning=True
180+
)
175181
return CodingAgents.SMARTFIX.name
176182

177183
def _parse_and_validate_severities(self, json_str: Optional[str]) -> List[str]:

src/git_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def reset_issue(issue_number: int, remediation_label: str) -> bool:
715715
if config.CODING_AGENT == CodingAgents.CLAUDE_CODE.name:
716716
debug_log("Claude code agent detected need to add a comment and tag @claude for reprocessing")
717717
# Add a comment to the existing issue to notify @claude to reprocess
718-
comment:str = f"@claude reprocess this issue with the new remediation label: `{remediation_label}` and attempt a fix."
718+
comment: str = f"@claude reprocess this issue with the new remediation label: `{remediation_label}` and attempt a fix."
719719
comment_command = [
720720
"gh", "issue", "comment",
721721
str(issue_number),
@@ -803,7 +803,7 @@ def find_open_pr_for_issue(issue_number: int) -> dict:
803803
]
804804

805805
pr_list_output = run_command(claude_pr_list_command, env=gh_env, check=False)
806-
806+
807807
if not pr_list_output or pr_list_output.strip() == "[]":
808808
debug_log(f"No open PRs found for issue #{issue_number} with either Copilot or Claude branch pattern")
809809
return None

src/merge_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _extract_remediation_info(pull_request: dict) -> tuple:
8383
debug_log(f"Extracted external issue number from branch name: {issue_number}")
8484
else:
8585
debug_log(f"Could not extract issue number from branch name: {branch_name}")
86-
86+
8787
# Set the external coding agent in telemetry based on branch prefix
8888
coding_agent = "EXTERNAL-CLAUDE-CODE" if branch_name.startswith("claude/") else "EXTERNAL-COPILOT"
8989
debug_log(f"Determined external coding agent to be: {coding_agent}")

0 commit comments

Comments
 (0)