-
Notifications
You must be signed in to change notification settings - Fork 739
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
feat: gitlab skip source, target and labels #1192
feat: gitlab skip source, target and labels #1192
Conversation
PR Reviewer Guide 🔍(Review updated until commit d2a744e)
|
This PR in its current state is far from being considered to merge, for several reasons:
What can be done instead:
|
Thanks for your review, but I was pretty sure of the answer. Let me reply to each point:
We are discussing three parameters and two lines of code to handle them; it would be more or less the same for the other providers.
I instead noticed that the GitHub provider can automatically skip "bot" PRs. This isn't something that the Gitlab server handles. It would be helpful to add it, too, and maybe it can partially reduce the need for this MR, just partially. I'll look into the title stuff, but not in this PR, as they are unrelated. |
Ok, I found where Github handles the bot users: https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/servers/github_app.py#L263 (anyway this is So this means not having a way on Gitlab to exclude RenovateBot automatic MR, the only way would be to exclude the the source branch Could this be a good justification to implement it? |
/describe |
/review |
/improve |
PR Description updated to latest commit (adce357)
|
Persistent review updated to latest commit adce357 |
@mrT23, just in case, I made some improvements:
|
@paolomainardi
thanks for the contribution |
Thanks a lot, @mrT23. I just pushed the requested changes but labels, which I pray you keep as they are very useful. Automated systems like RenovateBot may open PRs with attached labels that can be easier to identify instead of using regexp titles. Just as a reference, this is how I am currently using the feature:
|
/describe |
/review |
/improve |
PR Code Suggestions ✨Latest suggestions up to d2a744e
Previous suggestions✅ Suggestions up to commit adce357
✅ Suggestions up to commit 23af1af
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. Persistent review updated to latest commit d2a744e |
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Description updated to latest commit (d2a744e)
|
pr_agent/settings/configuration.toml
Outdated
# a list of regular expressions to match against the PR title to ignore the PR agent | ||
ignore_mr_title = [] | ||
# target branches to ignore from PR agent when an MR is created | ||
ignore_mr_target_branches = [] | ||
# source branches to ignore from PR agent when an MR is created | ||
ignore_mr_source_branches = [] | ||
# labels to ignore from PR agent when an MR is created | ||
ignore_mr_labels = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paolomainardi remove this
I want to have unified params, via the [config]. they are easier to maintain, track an use.
This is a deal breaker.
look how long and cumbersome are the current instructions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooops, it's a leftover, I'll remove it.
ok, i will merge, but i will later remove 'labels' from the instructions. |
Thanks for merging @mrT23. Still don't understand what's the point with labels, the idea behind this is that a PR is opened with certain labels, it will be skipped, exactly as with the title. Why it should be confusing or misleading ? Genuinely curious, maybe I am missing something. |
User description
Related to #1190
This is a first attempt to support on the gitlab server the ability to skip automatic commands for source, target branches and labels.
PR Type
Enhancement
Description
configuration.toml
to support these new ignore featuresChanges walkthrough 📝
github_app.py
Enhance GitHub PR filtering capabilities
pr_agent/servers/github_app.py
target branches
gitlab_webhook.py
Implement GitLab MR filtering features
pr_agent/servers/gitlab_webhook.py
branches, and target branches
additional_configurations.md
Document new PR/MR ignore configurations
docs/docs/usage-guide/additional_configurations.md
configuration.toml file
configuration.toml
Update configuration with new ignore options
pr_agent/settings/configuration.toml
labels, source branches, and target branches