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

A0-3838: Updates to dependabot file #1584

Merged
merged 2 commits into from
Jan 29, 2024
Merged

A0-3838: Updates to dependabot file #1584

merged 2 commits into from
Jan 29, 2024

Conversation

Marcin-Radecki
Copy link
Contributor

@Marcin-Radecki Marcin-Radecki commented Jan 25, 2024

Description

Based on https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file, we can enable the following:

  • commit-message.prefix set to some branch created for general Jira item for dependabot updates. This will be helpful also for audit purposes, as Jira will link all such PRs automatically
  • groups : make one PR for version updates and another PR for github actions update. We can then change the interval to Daily for version updates (leave Weekly for actions updates), as there will be only one PR raised so costs from CI will be similar to 5 PRs raised per week. Each day, the following will be done:

When a scheduled update runs, Dependabot will refresh pull requests for grouped updates using the following rules:

* If all the same dependencies need to be updated to the same versions, Dependabot will rebase the branch.

*  If all the same dependencies need to be updated, but a newer version has become available for one (or more) of the dependencies, Dependabot will close the pull request and create a new one.

* If the dependencies to be updated have changed - for example, if another dependency in the group now has an update available - Dependabot will close the pull request and create a new one.

There’s a small issue now, since we disabled automatic dependabot PR rebases: dependabot PRs get outdated quickly, so what I need to do as the dev person assigned to those PRs is to run @dependabot rebase, which takes time to re-run pipelines. We can’t enable automatic rebases as there would be too much noise (e.g. dependabot rebases PRs every time merge to main happens), having Daily Refresh would help here.

  • set pull-request-branch-name.separator to - (now it’s default /) - this is to unify approach as developers usually do
  • set schedule.time

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

@Marcin-Radecki Marcin-Radecki marked this pull request as ready for review January 25, 2024 14:23
@Marcin-Radecki Marcin-Radecki added this pull request to the merge queue Jan 29, 2024
Merged via the queue into main with commit 6aecdcc Jan 29, 2024
16 of 17 checks passed
@Marcin-Radecki Marcin-Radecki deleted the A0-3838 branch January 29, 2024 12:56
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.

3 participants