Public Beta
The service is rolled out as a public beta. At the moment we cannot guarantee that no breaking changes need to be implemented. Also the service can be turned off at any time. We are curiuos for your feedback.
Automating dependency updates in the Helmholtz Codebase¶
The Helmholtz Codebase is configured in a way that it supports automatic dependency updates using a tool called dependabot-gitlab. Therefore it makes use of dependabot-core which is known from GitHub.
The bot will automatically create Merge Requests for dependency updates helping you to keep your dependencies up-to-date thereby enhancing the security of your project.
Supported Ecosystems¶
The list of supported ecosystems is given here. Among others, Python, Docker or Git submodules are supported.
Configuration¶
In order to configure automatic dependency updates for your project a few steps need to be accomplished.
- Add the
hifis-botuser as a member to your project. At least the roleDeveloperneeds to be assigned. - Add a file called
.gitlab/dependabot.ymlinto the root of your repository. A minimal configuration for supporting the Python package managerspip,poetryorpipenvis given below.
1 2 3 4 5 6 7 | |
All configuration options are listed in the documentation.
- Within at most an hour the service will take note of the new project
and will start to submit dependency updates according to the definitions in
dependabot.yml. If you configure updates daily it can take at most 24 hours until the first merge requests will be submitted.
Webhooks - Interacting with the Bot¶
In order to communicate with the bot via comments in your Merge Request a webhook needs to be configured. Therefore, please follow these steps:
- In your project navigate to
Settings > Webhooks. -
Create a new webhook with these parameters, if not already present:
- URL:
https://dependabot.hzdr.de/api/hooks - Triggers:
Push events- default repository branch (typicallymainormaster)Merge request eventsCommentsPipeline events
- Keep
Enable SSL verificationenabled.
- URL:
-
Save the webhook by clicking
Add webhook.
Interacting with the Bot¶
Interacting with the bot is possible via Merge Request commands which are entered as comments. At the time of writing two commands can be issued.
Rebase¶
Add the comment @hifis-bot rebase, which will perform a merge request rebase.
This command does essentially the same action as GitLab built in /rebase command.
Recreate¶
The comment @hifis-bot recreate will recreate the merge request
resolving all merge conflicts that might be present.