-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is the action limited to pull_request: [opened, reopened]
?
#648
Comments
Hi @rajyan If you want full control, use PR-Agent Pro 💎 app, where you can modify everything (for example, running on push events: https://github.com/Codium-ai/pr-agent/blob/main/Usage.md#github-app-automatic-tools-for-push-actions-commits-to-an-open-pr ) I won't enable running pr-agent GitHub action on 'synchronize' for two reasons: You can open a PR for adding 'ready_for_review'. It is reasonable. |
Thank you for your explanation.
I totally agree with your point. https://github.com/Codium-ai/pr-agent/blob/e4f177908b620e46740b03966fda9243473d979e/pr_agent/servers/github_action_runner.py#L82
I couldn't get your point for this part. Running GitHub Actions builds from
I'll open it soon!
Thanks for your advice! If we use GitHub Actions, we can combine the pr-agent action with other actions. For example, we can run https://github.com/dorny/paths-filter in a previous step, and only run the review if specific set of files were changed in the pull request. |
Thanks you for your explanation! |
Currently the Codium-ai/pr-agent Github Action runs pr-agent on
pull_request: [opened, reopened]
https://github.com/Codium-ai/pr-agent/blob/e4f177908b620e46740b03966fda9243473d979e/pr_agent/servers/github_action_runner.py#L82
I think it is a sensible default (running pr-agent in 'synchronize' would get flooded), but there are lot of use cases that are reasonable to run pr-agent in 'synchronize' or 'ready_for_review'.
For example
opened
, because in most cases /review, /describe or /improve for draft pull requests are uselessSimply put, we want to have control over when the PR agent runs according to our own conditions.
Is it possible to change this line into a config? or are there any reasons that the event is restricted to
[opened, reopened]
?The text was updated successfully, but these errors were encountered: