d7b77764c3
Support context aware settings (for each incoming request), support override of settings, refactor CLI to use pr_agent.py
2023-08-01 14:43:26 +03:00
6605f9c444
typos in 'commands_text'
2023-07-31 11:02:30 +03:00
2a8adcbbd6
update README.md
2023-07-30 22:16:56 +03:00
0b22c8d427
update README.md
2023-07-30 22:04:59 +03:00
dfa0d9fd43
update README.md
2023-07-30 22:01:14 +03:00
c8470645e2
add tests and update README.md
2023-07-30 21:54:07 +03:00
5a181e52d5
Merge pull request #159 from Codium-ai/tr/edit_any_config_setting
...
The Configurator Strikes Back
2023-07-30 15:19:07 +03:00
0ad8dcd2aa
Merge remote-tracking branch 'origin/tr/edit_any_config_setting' into tr/edit_any_config_setting
2023-07-30 12:27:40 +03:00
e2d015a20c
final
2023-07-30 12:27:32 +03:00
a0cfe4b48a
Update CHANGELOG.md
2023-07-30 12:26:53 +03:00
a6ba8b614a
Example args
2023-07-30 12:16:43 +03:00
4f0fabd2ca
update_settings_from_args refactor
2023-07-30 12:14:26 +03:00
42b047a14e
update_settings_from_args
2023-07-30 12:04:57 +03:00
3daf94954a
update_settings_from_args
2023-07-30 11:43:44 +03:00
b564d8ac32
Merge pull request #147 from zmeir/zmeir-align_describe_styling
...
Minor improvements to describe command
2023-07-28 20:55:15 +03:00
d8e6da74db
Update .dockerignore
2023-07-28 12:15:17 +03:00
278f1883fd
Merge pull request #153 from marshally/fix_iteration_error_in_reflect_tmp
...
fix TypeError when iterating discussion_messages
2023-07-28 12:12:12 +03:00
ef71a7049e
fix TypeError when iterating discussion_messages
...
When `pr-agent` is reviewing a long list of messages, a TypeError is thrown on the line
```python
for message in reversed(discussion_messages):
```
When reviewing the PyGithub library, the recommend an alternate syntax for iterating a paginated list in reverse.
https://github.com/PyGithub/PyGithub/blob/v1.59.0/github/PaginatedList.py#L122-L125
```
If you want to iterate in reversed order, just do::
for repo in user.get_repos().reversed:
print(repo.name)
```
And here's a copy of the actual traceback
```
Traceback (most recent call last):
File "/app/pr_agent/servers/github_action_runner.py", line 68, in <module>
asyncio.run(run_action())
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/app/pr_agent/servers/github_action_runner.py", line 64, in run_action
await PRAgent().handle_request(pr_url, body)
File "/app/pr_agent/agent/pr_agent.py", line 19, in handle_request
await PRReviewer(pr_url, is_answer=True).review()
File "/app/pr_agent/tools/pr_reviewer.py", line 49, in __init__
answer_str, question_str = self._get_user_answers()
File "/app/pr_agent/tools/pr_reviewer.py", line 253, in _get_user_answers
for message in reversed(discussion_messages):
TypeError: object of type 'PaginatedList' has no len()
```
2023-07-28 11:04:46 +02:00
6fde87b3bd
Merge pull request #152 from Codium-ai/tr/gitlab_fixes
...
Improvements and Error Handling for GitLab Provider
2023-07-28 11:40:53 +03:00
07fe91e57b
Update CHANGELOG.md
2023-07-28 08:39:42 +00:00
01e2f3f0cd
Merge pull request #150 from Codium-ai/ok/handle_installation_id_properly
...
Github App: handle concurrent requests from multiple installations of app
2023-07-28 11:38:14 +03:00
63a703c000
Handle marketplace hook
2023-07-28 11:30:51 +03:00
4664d91844
bug fixes in gitlab code suggestion
2023-07-28 11:24:14 +03:00
8f16c46012
try-except
2023-07-28 10:52:49 +03:00
a8780f722d
Handle marketplace hook
2023-07-28 03:22:25 +03:00
1a8fce1505
Updated handling of installation id
2023-07-28 02:44:28 +03:00
8519b106f9
Updated .gitignore
2023-07-28 02:28:50 +03:00
d375dd62fe
Merge pull request #141 from patryk-kowalski-ds/pg/pip_package
...
Transition to pip package with pyproject.toml
2023-07-28 02:23:06 +03:00
3770bf8031
Update setup.py
2023-07-28 02:22:38 +03:00
5c527eca66
Merge remote-tracking branch 'origin/main' into pg/pip_package
2023-07-28 02:19:04 +03:00
b4ca52c7d8
updated Dockerfile.github_action
2023-07-28 02:18:12 +03:00
a78d741292
updated pyproject.toml
2023-07-28 02:09:01 +03:00
42388b1f8d
Merge pull request #146 from idavidov/idsvidov/gitlabpaginator_fix
...
Fix for GitLab Paginator in GitLab Provider
2023-07-28 02:01:04 +03:00
0167003bbc
handle no diffs
2023-07-28 01:59:10 +03:00
2ce91fbdf5
Merge pull request #148 from eltociear/patch-1
...
Fix typo in PR_COMPRESSION.md
2023-07-28 01:50:30 +03:00
aa7659d6bf
Fix typo in PR_COMPRESSION.md
...
Withing -> Within
2023-07-28 00:18:58 +09:00
4aa54b9bd4
Add /describe -c option
2023-07-27 17:42:50 +03:00
c6d0bacc08
Match styling of both /describe modes
2023-07-27 17:31:31 +03:00
99ed9b22a1
latest documentation suggest get_all not all
...
https://python-gitlab.readthedocs.io/en/stable/api-usage.html#pagination
2023-07-27 15:39:19 +03:00
eee6d51b40
issue #145
...
get all diffs in merge request and not only gitlab default 20
2023-07-27 14:41:36 +03:00
a50e137bba
Merge pull request #133 from idavidov/idavidov/github-ratelimit-message
...
Handling GitHub API Rate Limit Exceeded Exception
2023-07-27 14:22:11 +03:00
92c0522f4d
Merge pull request #144 from Codium-ai/tr/readme_update
...
Update README with 'Why use PR-Agent?' section
2023-07-27 10:43:56 +03:00
6a72df2981
Merge pull request #139 from Codium-ai/tr/changelog
...
Add feature to update CHANGELOG.md based on PR content
2023-07-27 09:04:48 +03:00
808ca48605
if not self.commit_changelog:
2023-07-27 08:48:39 +03:00
c827cbc0ae
final touches
2023-07-27 08:47:26 +03:00
48fcb46d4f
Delete CHANGELOG.md
2023-07-27 08:46:14 +03:00
66b94599ec
Update CHANGELOG.md
2023-07-27 08:45:33 +03:00
231efb33c1
add CHANGELOG.md
2023-07-27 08:43:29 +03:00
eb798dae6f
Why use PR-Agent
...
Why use PR-Agent
2023-07-27 08:25:05 +03:00
52576c79b3
Update CHANGELOG.md
2023-07-26 20:40:28 +03:00