Closed danstis closed 3 months ago
I raised a PR with this same fix, in case it is the correct path forward here.
i think this should solve it (in a cleaner way): https://github.com/Codium-ai/pr-agent/commit/3f3e9909fe972f8f75e12d4bb8c49e8ee887e219
Thanks, seems to work well with the current main branch.
I have a self hosted instance of PR-Agent in github app mode running that has been working fine for a long time. It has recently stopped working and this error is raised when it attempts to process a comment:
It seems to me that the
context.get("git_provider", {})
is returning no value, which means that it can't perform a get on it.I tested replacing this line: pr_agent/git_providers/init.py:49
with this:
It started working again for me, not sure if this is the correct fix here, but thought I would suggest it.