Skip to content

Commit 8e69b0a

Browse files
committed
chore: empty pr diff info message and not error
1 parent b6d285f commit 8e69b0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mcp_github/issues_pr_analyser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ async def get_github_pr_diff(repo_owner: str, repo_name: str, pr_number: int) ->
9595
pr_diff = self.gi.get_pr_diff(repo_owner, repo_name, pr_number)
9696
if pr_diff is None:
9797
no_changes = "No changes returned from get_pr_diff"
98-
logging.info({"status": "error", "message": no_changes})
99-
return {"status": "error", "message": no_changes}
98+
logging.info({"status": "info", "message": no_changes})
99+
return {"status": "info", "message": no_changes}
100100
logging.info({"status": "success", "message": f"Successfully fetched PR #{pr_number} diff"})
101-
return {"status": "success", "message": f"{pr_diff}"}
101+
return {"status": "success", "message": pr_diff}
102102
except Exception as e:
103103
logging.error({"status": "error", "message": str(e)})
104104
traceback.print_exc(file=sys.stderr)

0 commit comments

Comments
 (0)