Skip to content
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

GitLab: trigger builds for MR on code changes only #11365

Open
stsewd opened this issue May 28, 2024 · 0 comments
Open

GitLab: trigger builds for MR on code changes only #11365

stsewd opened this issue May 28, 2024 · 0 comments
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@stsewd
Copy link
Member

stsewd commented May 28, 2024

What's the problem this feature will solve?

Currently, we are triggering a build when an MR changed, like even when the title changed. But we want to trigger builds only when a code change was made.

Describe the solution you'd like

As the documentation suggests https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#merge-request-events

The field object_attributes.oldrev is only available when there are actual code changes, like:

We should in addition check for that attribute when the action is update.

Additional context

We are triggering builds for MR even when a title is changed.

@stsewd stsewd added Improvement Minor improvement to code Accepted Accepted issue on our roadmap labels May 28, 2024
@humitos humitos added Bug A bug and removed Improvement Minor improvement to code labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
Status: Planned
Development

No branches or pull requests

2 participants