-
Notifications
You must be signed in to change notification settings - Fork 127
Configure dependabot to ignore pre-release versions and preserve existing ignore rules #4322
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
Conversation
Co-authored-by: andresmr <[email protected]>
|
@copilot dependabot check is failing: |
Co-authored-by: andresmr <[email protected]>
Fixed the dependabot.yml syntax error. The issue was that I was incorrectly combining The fix is in commit bf87079. |
|
@copilot is still failing: |
…or pre-release filtering Co-authored-by: andresmr <[email protected]>
Fixed the dependabot.yml syntax error. The issue was using invalid The fix is in commit 9be12f5. |
|
@copilot please solve the conflicts |
Co-authored-by: andresmr <[email protected]>
Fixed the merge conflicts by removing trailing spaces and ensuring the dependabot.yml uses the correct syntax. The file now uses The fix is in commit bbb0534. |
|
@copilot do a rebase onto the main branch and fix the conflicts |
Successfully rebased onto main branch and resolved all merge conflicts. The dependabot.yml now properly combines the existing ignore rules from main with the pre-release filtering using Fixed in commit a1ca60d. |
|



Problem
Dependabot was creating pull requests for pre-release versions like
2.9.10-alpha01and1.9.10+dev2806, which are not suitable for production use and create unnecessary noise in the repository. Additionally, during the rebase process, it was discovered that the main branch had additional ignore rules that needed to be preserved.Solution
Updated the dependabot configuration in
.github/dependabot.ymlto:Preserve existing ignore rules from the main branch:
com.squareup.okhttp3:*org.hisp.dhis.mobile:designsystem:*org.hisp.dhis:android-core:*Add pre-release filtering using GitHub's recommended syntax:
This approach uses the official dependabot
update-typessyntax instead of problematic version patterns, ensuring compatibility with the Gradle ecosystem and eliminating validation errors.Benefits
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.