Luca Simone
0f6564f42d
feat: Added server and documentation
2023-11-25 17:37:44 +01:00
Ori Kotek
2add584fbc
Fix a bug in GitLab webhook
2023-11-21 16:28:01 +02:00
mrT23
c7a681038d
gfm instructions
2023-11-19 11:11:11 +02:00
mrT23
eb977b4c24
gfm instructions
2023-11-19 11:02:11 +02:00
koid
f0991526b5
remove unnecessary setup_logger
2023-11-08 16:56:44 +09:00
koid
e6ef123ce5
add middleware when initializing fastapi
2023-11-05 15:38:19 +09:00
Zohar Meir
cf4d007737
Fix commands list for push trigger
2023-10-31 00:00:48 +02:00
Ori Kotek
775ccb3f25
Refactor _perform_commands function in github_app.py to improve command handling
2023-10-30 20:14:25 +02:00
Ori Kotek
71a341855e
Add log_context to handle_request calls in gitlab_webhook.py
2023-10-30 16:00:09 +02:00
mrT23
e97a03f522
Merge remote-tracking branch 'origin/main' into tr/final_fixes
2023-10-29 14:38:33 +02:00
Ori Kotek
61d3e1ebf4
Merge pull request #394 from zmeir/zmeir-external-push_trigger
...
Added support for automatic review on push event
2023-10-29 13:04:33 +02:00
mrT23
ae375c2ff0
final fixes
2023-10-29 13:01:55 +02:00
mrT23
c27dc436c4
final fixes
2023-10-29 12:29:14 +02:00
mrT23
638db96311
github action now also uses .pr_agent.toml
2023-10-28 13:34:32 +03:00
Hussam.lawen
6f2bbd3baa
Add documentation
2023-10-28 00:45:59 +03:00
Hussam.lawen
ca0ea77415
refactor
2023-10-27 07:58:42 +03:00
zmeir
6541575a0e
Refactor to use pull_request synchronize event
2023-10-26 16:49:54 +03:00
Hussam.lawen
16777a5334
Add custom label description
2023-10-25 13:48:27 +03:00
zmeir
65bb70a1dd
Added support for automatic review on push event
...
The new feature can be enabled via the new configuration `github_app.handle_push_event`. To avoid any unwanted side-effects, the current default of this configuration is set to `false`.
The high level flow (assuming the configuration is enabled):
1. receive push event from GitHub
2. extract branch and commits from event
3. find PR url for branch (currently does not support PRs from forks)
4. perform configured commands (e.g. `/describe`, `/review -i`)
The push event flow is guarded by a backlog queue so that multiple push events on the same branch won't trigger multiple duplicate runs of the PR-Agent commands.
Example timeline:
1. push 1 - start handling event
2. push 2 - waiting to be handled while push 1 event is still running
3. push 3 - event is dropped since handling it and handling push 2 is the same, so it is redundant
4. push 1 finished being handled
5. push 2 awakens from wait and continues handling (potentially reviewing the commits of both push 2 and push 3)
All of these options are configurable and can be enabled/disabled as per the user's desire.
Additional minor changes in this PR:
1. Created `DefaultDictWithTimeout` utility class to avoid too much boilerplate code in managing caches for outdated triggers.
2. Guard against running increment review when there are no new commits.
3. Minor styling changes for incremented review text.
2023-10-25 11:15:23 +03:00
Hussam.lawen
fa24413201
Custom Labels
2023-10-23 16:29:33 +03:00
Ori Kotek
fc494296d7
Merge pull request #387 from Codium-ai/ok/json_logging_in_bitbucket
...
Enhancing Logging in Bitbucket, GitLab, and Google Cloud Storage Secret Provider
2023-10-19 11:59:26 +03:00
Ori Kotek
1314898cbf
Enhance logging in bitbucket_app, gitlab_webhook, and google_cloud_storage_secret_provider with JSON format and additional context
2023-10-18 16:44:03 +03:00
Ori Kotek
ff04d459d7
Update Bitbucket Pipeline instructions in INSTALL.md, remove redundant functionality
2023-10-18 15:46:43 +03:00
Ori Kotek
83e670c5df
Enhance logging context in github_app server with server type
2023-10-16 16:13:09 +03:00
Ori Kotek
c324d88be3
Refactor logging system to use custom logger across the codebase
2023-10-16 14:56:00 +03:00
Ori Kotek
e7258e732b
Refactor repo-specific settings application into a utility function, fix merge bug
2023-10-14 01:39:05 +03:00
mrT23
e7aee84ea8
isinstance
2023-09-25 18:23:56 +03:00
mrT23
388684e2e8
none
2023-09-25 18:19:35 +03:00
mrT23
8f81c18647
auto commands in github action
2023-09-25 18:01:32 +03:00
sarbjitgrewal
46ec3c0754
implement suggestions in bitbucket pipeline
2023-09-21 14:42:59 +05:30
sarbjitgrewal
e343ce8468
bitbucket pipeline for adding reviews
2023-09-15 16:05:55 +05:30
sarbjitgrewal
978c56c128
update pipeline
2023-09-15 12:38:34 +05:30
sarbjitgrewal
4043dfff9e
Merge branch 'main' of https://github.com/Codium-ai/pr-agent into fix_bitbucket_pipeline
2023-09-14 15:31:18 +05:30
Ori Kotek
21feb92b75
Support issue comments in GitHub Actions
2023-09-12 16:41:12 +03:00
Ori Kotek
2f6178306f
Fix a bug in GitHub Actions
2023-09-12 13:28:35 +03:00
sarbjitgrewal
12bd9e8b42
add bitbucket pipeline
2023-09-11 16:08:23 +05:30
Ori Kotek
1443df7227
Merge remote-tracking branch 'origin/main' into ok/gitlab_webhook
2023-09-05 18:15:51 +03:00
Nikolay Telepenin
53ce609266
Msg is mandatory field for the request
2023-09-04 15:50:36 +01:00
Ori Kotek
140760c517
Add Gitlab webhook secret
2023-09-04 16:39:31 +03:00
Ori Kotek
56e9493f7a
Add Gitlab webhook secret
2023-09-04 15:29:21 +03:00
Nikolay Telepenin
1254ad1727
Gerrit:
...
- support reflect/answer
2023-09-01 14:31:35 +01:00
Nikolay Telepenin
eeea38dab3
Gerrit support
2023-09-01 14:31:34 +01:00
Ori Kotek
4c6595148b
Add Gitlab webhook secret
2023-08-31 17:03:58 +03:00
Ori Kotek
02e0f958e7
Add Gitlab webhook secret
2023-08-31 14:56:45 +03:00
Ori Kotek
d64b1f80da
Allow overriding GitHub app default action by using repo local file
2023-08-30 12:12:09 +03:00
Ori Kotek
9e878d0d9a
Bitbucket server
2023-08-27 10:11:46 +03:00
Ori Kotek
355abfc39a
Bitbucket server, WIP
2023-08-24 18:35:41 +03:00
Ori Kotek
5079daa4ad
Bitbucket server, WIP
2023-08-24 16:33:51 +03:00
Ori Kotek
123741faf3
Bitbucket server, WIP
2023-08-24 12:10:13 +03:00
zmeir
5582a901ff
Merge branch 'main' into zmeir-automatic_github_app_options
2023-08-22 21:09:23 +03:00
Zohar Meir
3d771e28ce
Remove redundant None default in dict.get
2023-08-22 18:33:25 +03:00
Zohar Meir
62fe1de12d
Remove redundant toggle
2023-08-22 18:28:06 +03:00
zmeir
782c170883
Support custom deployments for github_app.py and add more options for automatic review actions
2023-08-22 16:46:03 +03:00
mrT23
b85679e5e4
improve --extend
2023-08-22 09:42:59 +03:00
Tim Perkins
631fb93b28
Implement Automatic Review Configuration for GitHub app
2023-08-16 16:24:30 -04:00
Zohar Meir
b7b650eb05
Remove extra blank line in help message
2023-08-13 11:32:02 +03:00
mrT23
d3a5aea89e
update_changelog
2023-08-11 18:50:56 +03:00
Ori Kotek
ebbe655c40
Don't commment on Github, only eyes reaction
2023-08-07 18:09:39 +03:00
Ori Kotek
b1148e5f7a
Don't commment on Github, only eyes reaction
2023-08-07 16:34:28 +03:00
Ori Kotek
a75253097b
Don't remove eyes
2023-08-07 16:28:20 +03:00
Ori Kotek
886139c6b5
Support adding / removing reaction from comments in GitHub different servers
2023-08-07 16:18:08 +03:00
zmeir
dd14423b07
Add /config command to list the possible configuration settings
2023-08-02 16:42:54 +03:00
Ori Kotek
8ae936e504
Bug fixes
2023-08-01 15:58:23 +03:00
Ori Kotek
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
mrT23
6605f9c444
typos in 'commands_text'
2023-07-31 11:02:30 +03:00
mrT23
42b047a14e
update_settings_from_args
2023-07-30 12:04:57 +03:00
mrT23
3daf94954a
update_settings_from_args
2023-07-30 11:43:44 +03:00
Ori Kotek
b564d8ac32
Merge pull request #147 from zmeir/zmeir-align_describe_styling
...
Minor improvements to describe command
2023-07-28 20:55:15 +03:00
Ori Kotek
a8780f722d
Handle marketplace hook
2023-07-28 03:22:25 +03:00
Ori Kotek
1a8fce1505
Updated handling of installation id
2023-07-28 02:44:28 +03:00
zmeir
4aa54b9bd4
Add /describe -c option
2023-07-27 17:42:50 +03:00
Ori Kotek
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
Ori Kotek
8ae5faca53
Fix cyclic dependency
2023-07-25 16:52:18 +03:00
mrT23
2dfbfec8c2
refactor
2023-07-24 19:48:24 +03:00
Ori Kotek
adb3f17258
Merge pull request #131 from Codium-ai/ok/gitlab_webook
...
GitLab Webhook Integration and Provider Enhancements
2023-07-24 16:01:17 +03:00
Ori Kotek
c9c95d60d4
Implement gitlab webhook
2023-07-24 15:05:24 +03:00
mrT23
cca809e91c
run_action
2023-07-24 12:45:24 +03:00
Ori Kotek
32151e3d9a
Temporarily remove gitlab polling server until a rewrite is ready
2023-07-23 17:04:41 +03:00
mrT23
3d5d517f2a
code suggestions
2023-07-19 20:57:14 +03:00
Ori Kotek
df25a3ede2
typo
2023-07-19 18:22:26 +03:00
Ori Kotek
67c61e0ac8
Update help
2023-07-19 17:27:12 +03:00
Ori Kotek
0985db4e36
Update help
2023-07-19 17:20:26 +03:00
Yuval Goldberg
dc67e6a66e
Support deploying pr-agent on AWS Lambda
2023-07-18 17:46:42 +03:00
Ori Kotek
90f97b0226
Lint fixes
2023-07-18 11:34:57 +03:00
Ori Kotek
a994ec1427
Call PRAgent from github_action_runner.py
2023-07-18 10:19:32 +03:00
mrT23
51e08c3c2b
reflect and review + protections
2023-07-18 08:22:25 +03:00
mrT23
c866288b0a
Merge remote-tracking branch 'origin/main' into tr/agent_logic
2023-07-17 15:59:37 +03:00
mrT23
f8f415eb75
stable
2023-07-17 15:49:29 +03:00
Ori Kotek
0b1edd9716
A small typo
2023-07-16 21:47:50 +03:00
Ori Kotek
d54ee252ee
Improve help text
2023-07-16 17:41:23 +03:00
Ori Kotek
93311a9d9b
Update GitHub app
2023-07-16 15:42:50 +03:00
Ori Kotek
60bce8f049
Update Github polling
2023-07-16 15:00:13 +03:00
Ori Kotek
7958786b4c
Github action to work with an image stored on Dockerhub for faster execution
2023-07-16 14:19:02 +03:00
Ori Kotek
19f11f99ce
Github action support for new style commands
2023-07-16 13:36:02 +03:00
Ori Kotek
1c1aad2806
Github custom action development - WIP
2023-07-13 19:08:10 +03:00
Ori Kotek
e2323dfb9f
Github custom action development - WIP
2023-07-13 18:54:40 +03:00
Ori Kotek
f6d4a214ca
Github custom action development - WIP
2023-07-13 18:40:03 +03:00
Ori Kotek
f337d76af6
Github custom action development - WIP
2023-07-13 18:32:28 +03:00
Ori Kotek
4033303c1f
Github custom action development - WIP
2023-07-13 18:18:23 +03:00
Ori Kotek
38c8d187d2
Github custom action development - WIP
2023-07-13 18:16:25 +03:00
Ori Kotek
9ca6b789a7
Github custom action development - WIP
2023-07-13 18:02:38 +03:00
Ori Kotek
5742a9be1e
Github custom action development
2023-07-13 17:46:12 +03:00
Ori Kotek
b2d952cafa
1. Move deployment_type to configuration.toml
...
2. Lint
3. Inject GitHub app installation ID into GitHub provider using the settings mechanism.
2023-07-11 16:55:09 +03:00
Ori Kotek
6eacf4791d
Merge remote-tracking branch 'origin/main' into feature/gitlab_provider
2023-07-11 15:49:06 +03:00
Hussam Lawen
e1b856f7e6
Merge pull request #34 from Codium-ai/enhancement/soft_and_hard_thresh
...
Separate output token threshold to soft and hard instead of implicit hard = soft/2
2023-07-11 14:35:00 +03:00
Ori Kotek
5fdc9223e9
Separate output token threshold to soft and hard instead of implicit hard = soft/2
2023-07-11 14:11:46 +03:00
Eugene Kaushnian
8fba670bda
Rename github_app_webhook.py to github_app.py
2023-07-08 13:36:47 -04:00
salberts
fb4badd160
changes
2023-07-08 12:14:32 +03:00
salberts
d4adcb3c22
Configurable polling interval
2023-07-08 10:26:41 +03:00
salberts
75167c2700
add polling
2023-07-08 08:52:11 +03:00
Ori Kotek
c8d369ee61
Protect against no notifications received
2023-07-06 20:04:32 +03:00
Ori Kotek
ffa4ce3f1e
Protect against no notifications received
2023-07-06 19:22:55 +03:00
Ori Kotek
2de83827b6
Add exception protection for unexpected conditions during request handling
2023-07-06 19:08:47 +03:00
Ori Kotek
6648c04799
Protect from notifications that may be handled twice by keeping a set of handled notification IDs
2023-07-06 17:46:43 +03:00
Ori Kotek
399d7b7990
Improve handling of tagging and Github app user interaction - a small correction
2023-07-06 13:09:51 +03:00
Ori Kotek
b6333e7f20
Improve handling of tagging and Github app user interaction
2023-07-06 12:58:05 +03:00
Ori Kotek
4b4d91dfe9
Initial commit - PR-Agent OSS release
2023-07-06 00:21:08 +03:00