~/work/personal/agentic-code-reviewer main ⇡1 !4 14s agentic-code-reviewer-py3.13 base
❯ python -m src.code_review pull_request
2025-04-12 13:36:16,687 - INFO - Testing access to repository
Repository(full_name="agno-agi/agno")
2025-04-12 13:36:16,687 - INFO - Repo owner: agno-agi
2025-04-12 13:36:16,687 - INFO - Repo name: agno
2025-04-12 13:36:16,687 - INFO - Fetching pull request #2787
Pull Request Number: 2787
Title: feat: Qdrant hybrid search
Okay, I understand. I will analyze the provided diff file, identify the key changes, and generate a summary following the specified format and guidelines, avoiding the prohibited phrases. I will focus on clarity, conciseness, and readability.
Request POST /repos/agno-agi/agno/issues/2787/comments failed with 403: Forbidden
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/abhishekrp/work/personal/agentic-code-reviewer/src/code_review.py", line 285, in <module>
repo.create_comment(review_comment)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/Users/abhishekrp/work/personal/agentic-code-reviewer/src/code_review.py", line 263, in create_comment
self.repository.get_issue(self.event_number).create_comment(comment)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/github/Issue.py", line 388, in create_comment
headers, data = self._requester.requestJsonAndCheck("POST", f"{self.url}/comments", input=post_parameters)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/github/Requester.py", line 625, in requestJsonAndCheck
*self.requestJson(
~~~~~~~~~~~~~~~~^
verb,
^^^^^
...<5 lines>...
follow_302_redirect=follow_302_redirect,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/github/Requester.py", line 959, in requestJson
status, responseHeaders, output = self.__requestEncode(
~~~~~~~~~~~~~~~~~~~~^
cnx, verb, url, parameters, headers, input, encode, follow_302_redirect=follow_302_redirect
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/github/Requester.py", line 1098, in __requestEncode
status, responseHeaders, output = self.__requestRaw(
~~~~~~~~~~~~~~~~~^
cnx, verb, url, requestHeaders, encoded_input, stream=stream, follow_302_redirect=follow_302_redirect
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/github/Requester.py", line 1136, in __requestRaw
response = cnx.getresponse()
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/github/Requester.py", line 214, in getresponse
r = verb(
url,
...<4 lines>...
allow_redirects=False,
)
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
method=request.method,
...<9 lines>...
chunked=chunked,
)
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/urllib3/connectionpool.py", line 932, in urlopen
retries = retries.increment(method, url, response=response, _pool=self)
File "/Users/abhishekrp/Library/Caches/pypoetry/virtualenvs/agentic-code-reviewer-7evlphYs-py3.13/lib/python3.13/site-packages/github/GithubRetry.py", line 187, in increment
raise Requester.createException(response.status, response.headers, content) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
github.GithubException.GithubException: Resource not accessible by personal access token: 403 {"message": "Resource not accessible by personal access token", "documentation_url": "https://docs.github.com/rest/issues/comments#create-an-issue-comment", "status": "403"}
Encountered the following error: