Commit graph

49 commits

Author SHA1 Message Date
Matan Baruch
585a7f1c69
Update github_action_runner.py 2024-09-15 09:33:47 +03:00
mrT23
d088f9c19a
disable 'PUBLISH_OUTPUT_PROGRESS=False' 2024-07-18 11:49:09 +03:00
Kamakura
b1444eb180 format github_action_runner.py 2024-06-04 11:10:13 +08:00
mrT23
4f13007267
Disable final update message when auto_describe is enabled in GitHub Action Runner 2024-06-03 08:15:36 +03:00
Pavel Kvach
4c83bf695d Handle OPENAI_KEY not set error in github_action_runner.py
Fixes https://github.com/Codium-ai/pr-agent/issues/855
2024-04-12 10:50:00 +03:00
idubnori
9e4ffd824c
Merge branch 'main' into feature/gha-outputs-1 2024-04-10 23:27:44 +09:00
idubnori
3412095d81 chore: change default to true, if use in github actions 2024-04-10 09:18:21 +09:00
idubnori
75c4befadf feat: set review data to github actions output 2024-04-10 01:02:05 +09:00
idubnori
493f73f1ce chore: add logging the reason not execute 2024-03-27 12:03:27 +09:00
mrT23
c98e736e3b
added github action support 2024-02-16 14:49:01 +02:00
mrT23
40fbd55da4
added github action support 2024-02-16 12:58:55 +02:00
Yohta Kimura
67fde2c17e
add pull_request event triggers for github action
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
2024-02-11 21:21:20 +09:00
mrT23
06dede29f2
feat: Update configuration and handling of GitHub Action settings 2024-01-27 21:15:23 +02:00
Ori Kotek
0e54a13272
Improve error handling in settings retrieval
Fix bug where default values were not being used in GitHub Action runners when environmental variables are not set. Now, if an environmental variable cannot be found and no default is given, the default value will be used if one exists. This will prevent errors during setup on different environments and ensure system stability.
2023-11-29 11:52:02 +02:00
Ori Kotek
b67d06ae59
"Add fallback to environment variables in GitHub Action Runner"
A new function `get_setting_or_env` was implemented to facilitate fetching of either settings or environmental variables in the GitHub Action Runner. This was necessary to resolve an issue where a certain undefined behaviour occurs in GitHub Actions, leading to an attribute error. The new function also provides a default value parameter to ensure the return of a value even in failed attempts to fetch from either settings or environment variables.
2023-11-29 11:47:52 +02:00
Ori Kotek
580eede021
Add utility function to handle boolean type conversion
A utility function (`is_true`) was added to take care of validating and converting boolean values from string or boolean types. This function is used in three parts of the `run_action` method where automatic PR review, description, and improvement actions are triggered based on environment settings. This change makes the condition checks cleaner and prevents code duplication.
2023-11-29 10:33:12 +02:00
Ori Kotek
2dcee63df5
fix improve 2023-11-27 12:32:53 +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
Hussam.lawen
16777a5334
Add custom label description 2023-10-25 13:48:27 +03:00
Hussam.lawen
fa24413201
Custom Labels 2023-10-23 16:29:33 +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
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
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
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
cca809e91c
run_action 2023-07-24 12:45:24 +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
f8f415eb75
stable 2023-07-17 15:49:29 +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