Skip to content

fix: Azure DevOps plan (issue 5507)#5611

Merged
chenrui333 merged 4 commits intorunatlantis:mainfrom
bub3n:main
Jun 26, 2025
Merged

fix: Azure DevOps plan (issue 5507)#5611
chenrui333 merged 4 commits intorunatlantis:mainfrom
bub3n:main

Conversation

@bub3n
Copy link
Contributor

@bub3n bub3n commented Jun 10, 2025

what

Fix for #5507

why

In the Atlantis GitHub issue #5507, there was a problem with downloading Git diff changes. The issue appeared after adding the top and skip arguments to the Git diff call. Previously, this endpoint did not return the changeCounts key when called with different arguments.

You can also see this in test scenario in azuredevops/git_test.go (link) which does not reflect that. And if you compare it to the Azure Devops documentation it's missing changeCounts key.

To fix this, I updated the GitCommitDiffs struct by changing the key to a string type, aligning it with other structs with changeCounts key for consistency.

tests

make test-all went thru without errors. And thanks to @leonardocaylent for testing the new build with the change in his environment.

references

bub3n and others added 2 commits June 9, 2025 12:23
@github-actions github-actions bot added the dependencies PRs that update a dependency file label Jun 10, 2025
@dosubot dosubot bot added go Pull requests that update Go code provider/azuredevops labels Jun 10, 2025
@bub3n bub3n changed the title Fix Azure DevOps plan (issue 5507) Fix: Azure DevOps plan (issue 5507) Jun 10, 2025
@bub3n bub3n changed the title Fix: Azure DevOps plan (issue 5507) fix: Azure DevOps plan (issue 5507) Jun 10, 2025
Copy link
Contributor

@leonardocaylent leonardocaylent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this changes and the plans now trigger correctly for more than 100 files

@jamengual
Copy link
Contributor

@bub3n I believe this is not needed anymore? I see only go.mod and sum updates.

@jamengual jamengual added the waiting-on-response Waiting for a response from the user label Jun 19, 2025
@leonardocaylent
Copy link
Contributor

leonardocaylent commented Jun 19, 2025

@jamengual We still need this because main is at 0.13.1 https://github.com/runatlantis/atlantis/blob/main/go.mod#L13. I'm not familiar with the release process, do we get latest version available for packages automatically?

@bub3n
Copy link
Contributor Author

bub3n commented Jun 22, 2025

@jamengual Sorry for delayed answer. I was out.

If you will bump the version with renovate bot as mentioned here #5614. You can close it. Sorry did not realize that you are fixing the dependencies with renovate bot.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 26, 2025
@chenrui333 chenrui333 merged commit 00d5889 into runatlantis:main Jun 26, 2025
40 checks passed
mowirth pushed a commit to mowirth/atlantis that referenced this pull request Jun 27, 2025
Signed-off-by: bub3n <43008808+bub3n@users.noreply.github.com>
Co-authored-by: Petr Bubenik <petr.bubenik@drmax.eu>
Co-authored-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
Signed-off-by: Moritz Wirth <mw@flanga.io>
dimisjim pushed a commit to dimisjim/atlantis that referenced this pull request Oct 29, 2025
Signed-off-by: bub3n <43008808+bub3n@users.noreply.github.com>
Co-authored-by: Petr Bubenik <petr.bubenik@drmax.eu>
Co-authored-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
Signed-off-by: dimisjim <dimitris.moraitidis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies PRs that update a dependency file go Pull requests that update Go code lgtm This PR has been approved by a maintainer provider/azuredevops waiting-on-response Waiting for a response from the user

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants