Commit graph

29 commits

Author SHA1 Message Date
mrT23
40fbd55da4
added github action support 2024-02-16 12:58:55 +02:00
Hussam.lawen
fff52e9e26
Add ask line feature 2024-02-15 14:25:22 +02:00
mrT23
a043eb939b
feat: Apply repo settings on push trigger in github_app.py 2023-12-07 08:42:18 +02: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
zmeir
6541575a0e Refactor to use pull_request synchronize event 2023-10-26 16:49:54 +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
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
Ori Kotek
140760c517
Add Gitlab webhook secret 2023-09-04 16:39:31 +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
355abfc39a
Bitbucket server, WIP 2023-08-24 18:35:41 +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
Tim Perkins
631fb93b28 Implement Automatic Review Configuration for GitHub app 2023-08-16 16:24:30 -04: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
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
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
mrT23
2dfbfec8c2
refactor 2023-07-24 19:48:24 +03:00
Ori Kotek
93311a9d9b
Update GitHub app 2023-07-16 15:42:50 +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
Eugene Kaushnian
8fba670bda Rename github_app_webhook.py to github_app.py 2023-07-08 13:36:47 -04:00
Renamed from pr_agent/servers/github_app_webhook.py (Browse further)