Commit Graph

37 Commits

Author SHA1 Message Date
06dede29f2 feat: Update configuration and handling of GitHub Action settings 2024-01-27 21:15:23 +02:00
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
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
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
2dcee63df5 fix improve 2023-11-27 12:32:53 +02:00
ae375c2ff0 final fixes 2023-10-29 13:01:55 +02:00
c27dc436c4 final fixes 2023-10-29 12:29:14 +02:00
638db96311 github action now also uses .pr_agent.toml 2023-10-28 13:34:32 +03:00
6f2bbd3baa Add documentation 2023-10-28 00:45:59 +03:00
ca0ea77415 refactor 2023-10-27 07:58:42 +03:00
16777a5334 Add custom label description 2023-10-25 13:48:27 +03:00
fa24413201 Custom Labels 2023-10-23 16:29:33 +03:00
e7aee84ea8 isinstance 2023-09-25 18:23:56 +03:00
388684e2e8 none 2023-09-25 18:19:35 +03:00
8f81c18647 auto commands in github action 2023-09-25 18:01:32 +03:00
21feb92b75 Support issue comments in GitHub Actions 2023-09-12 16:41:12 +03:00
2f6178306f Fix a bug in GitHub Actions 2023-09-12 13:28:35 +03:00
ebbe655c40 Don't commment on Github, only eyes reaction 2023-08-07 18:09:39 +03:00
b1148e5f7a Don't commment on Github, only eyes reaction 2023-08-07 16:34:28 +03:00
a75253097b Don't remove eyes 2023-08-07 16:28:20 +03:00
886139c6b5 Support adding / removing reaction from comments in GitHub different servers 2023-08-07 16:18:08 +03:00
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
cca809e91c run_action 2023-07-24 12:45:24 +03:00
90f97b0226 Lint fixes 2023-07-18 11:34:57 +03:00
a994ec1427 Call PRAgent from github_action_runner.py 2023-07-18 10:19:32 +03:00
51e08c3c2b reflect and review + protections 2023-07-18 08:22:25 +03:00
f8f415eb75 stable 2023-07-17 15:49:29 +03:00
7958786b4c Github action to work with an image stored on Dockerhub for faster execution 2023-07-16 14:19:02 +03:00
19f11f99ce Github action support for new style commands 2023-07-16 13:36:02 +03:00
1c1aad2806 Github custom action development - WIP 2023-07-13 19:08:10 +03:00
e2323dfb9f Github custom action development - WIP 2023-07-13 18:54:40 +03:00
f6d4a214ca Github custom action development - WIP 2023-07-13 18:40:03 +03:00
f337d76af6 Github custom action development - WIP 2023-07-13 18:32:28 +03:00
4033303c1f Github custom action development - WIP 2023-07-13 18:18:23 +03:00
38c8d187d2 Github custom action development - WIP 2023-07-13 18:16:25 +03:00
9ca6b789a7 Github custom action development - WIP 2023-07-13 18:02:38 +03:00
5742a9be1e Github custom action development 2023-07-13 17:46:12 +03:00