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

Add dependabot.yml for dependency version updates #138

Merged
merged 10 commits into from
Sep 6, 2024

Conversation

kanwalpreetd
Copy link
Contributor

What

Adding base config for dependabot.yml, which enables automatic PRs for dependency version updates through Dependabot. This base config sets version updates to run on a weekly schedule, groups PRs for version updates, and sets max PRs that Dependabot can create for version updates per package-ecosystem.
But if you would like, several config options can be added to dependabot.yml as per configuration-options-for-the-dependabot.yml-file to customize version updates, such as:

Also, automatic PRs for security updates through Dependabot are already enabled through a global setting. PRs for security updates will be grouped as much as possible across directories and per ecosystem through the global setting (grouping-dependabot-security-updates). But dependabot.yml can also be used for more granular security updates settings in addition to version updates (some of the options in dependabot.yml are shared across security and version updates), such as:

Why

To enable using the latest package versions, and provide a way to customize Dependabot security updates PRs.

Known limitations

N/A

@Ifropc
Copy link
Contributor

Ifropc commented Jul 26, 2024

Thanks for this PR @kanwalpreetd !
In this project and anchor platform we are using gradle/libs.versions.toml file to store dependencies and their versions. Do you know if dependabot supports this structure?

@kanwalpreetd
Copy link
Contributor Author

@Ifropc I think I checked when creating this PR, don't think it picked up gradle/libs.versions.toml. But I will check again shortly.

@kanwalpreetd
Copy link
Contributor Author

@Ifropc It should work now for gradle/libs.versions.toml too (there was an issue with the path when I tried earlier, it wanted me to reference the base dir even though the file is under gradle/, usually that's not the case for other build systems)

@Ifropc
Copy link
Contributor

Ifropc commented Sep 6, 2024

Thanks @kanwalpreetd let's try merging it and see how it works

@Ifropc Ifropc merged commit 20f7d96 into stellar:main Sep 6, 2024
3 checks passed
@kanwalpreetd
Copy link
Contributor Author

kanwalpreetd commented Sep 6, 2024

thanks, looks like it's working as intended. (as mentioned above, feel free to adjust the config further through: configuration-options-for-the-dependabot.yml-file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants