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

ES-2153 - Added support for multiple files and for updating default parameters #426

Merged
merged 31 commits into from
Apr 22, 2024

Conversation

Andrei-Predoiu
Copy link
Contributor

@Andrei-Predoiu Andrei-Predoiu commented Apr 11, 2024

Added support for multiple files.

  • If directory is set to a folder, dependabot-circleci will travel the whole directory tree and check all yml/yaml files.
  • Default for directory is now .circleci/config.yml. This different than the old behavior and will break stuff in our templates.

Added support for updating the default value of parameters

  • !Only works if the image or orb is defined in the same file as the parameter!
  • If a default is not set or a parameter is not found then nothing will be updated

Example:
https://github.com/BESTSELLER/cci-common-test/pulls
Files that can't be updated:
https://github.com/BESTSELLER/cci-common-test/blob/49ca40c5737faf0750552dfeeb7b53c58ae8e51d/src/jobs/build_n_push_docker.yml#L11

This will fix: #194

@Andrei-Predoiu Andrei-Predoiu added enhancement New feature or request major drafts the next major release bug-fix If this resolves a bug, put it on. labels Apr 17, 2024
@Andrei-Predoiu Andrei-Predoiu marked this pull request as ready for review April 17, 2024 11:48
@Andrei-Predoiu Andrei-Predoiu requested a review from a team as a code owner April 17, 2024 11:48
@Andrei-Predoiu
Copy link
Contributor Author

@Gaardsholt do you think there will be timeout issues because of how long it can take to run this now?

Copy link
Member

@Gaardsholt Gaardsholt left a comment

Choose a reason for hiding this comment

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

Can you please write a proper title for the pull request, just to make the release notes a bit better

I'm not completely done reviewing this pull request, I will continue when you have addressed the comments I have added so far :)

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
gh/commit.go Outdated Show resolved Hide resolved
dependabot/dependabot.go Outdated Show resolved Hide resolved
circleci/update.go Outdated Show resolved Hide resolved
@Andrei-Predoiu Andrei-Predoiu changed the title Es 2153 ES-2153 - Added support for multiple files and for updating default parameters Apr 18, 2024
circleci/orb.go Outdated Show resolved Hide resolved
circleci/update_test.go Outdated Show resolved Hide resolved
Copy link
Member

@Gaardsholt Gaardsholt left a comment

Choose a reason for hiding this comment

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

LGTM - kinda hard to follow the changes, but I trust you :)

Could we add test cases for this new functionality?

README.md Outdated Show resolved Hide resolved
Andrei-Predoiu and others added 4 commits April 19, 2024 11:25
Co-authored-by: Lasse Gaardsholt <lasse.gaardsholt@bestseller.com>
Copy link

sonarcloud bot commented Apr 22, 2024

@Andrei-Predoiu Andrei-Predoiu merged commit 708608d into master Apr 22, 2024
12 checks passed
@Andrei-Predoiu Andrei-Predoiu deleted the ES-2153 branch April 22, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix If this resolves a bug, put it on. enhancement New feature or request major drafts the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ES-2153: Support orb-tools-orb structure
3 participants