-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Dependecy update auto merge after passing tests #3741
Dependecy update auto merge after passing tests #3741
Conversation
Can we make Dependabot only make |
I think dependabot should still create the PRs for major versions, and just don't auto merge them. Or alternatively, I think Renovate might be a better choice, and it takes care of auto merge out-of-box. |
Does it sound good? |
No, there're only very few tests, so automerge may not work so far |
Yes this sounds great |
I have added the condition that if |
Thank you so much! I guess this should be merged |
@louislam can u merge this PR please |
I think improvements need to be made on unit & integration tests before any attempt at auto-merge. The fact is that there is currently very little test coverage for a project that has grown much in complexity. |
@chakflying, what is the current process for going live? Is manual testing done on all features every time? |
Can't speak on behalf of @louislam as he does the releasing. I only test features per-PR as they are merged. |
At this moment, I prefer running If dependabot auto merges pull requests, I don't know, but it doesn't seem to be safe for me. As @chakflying said, the code coverage in this project is pretty much no coverage. If dependabot keeps creating pull requests here, I feel like it increases my workload to review them, especially some packages literally update everyday such as those However, if there are any other bots that could create a single pull request. I am OK with it. Like our Weblate translation bot: #3659 |
I don't get what u mean by if Dependabot create PR's not safe for you? Auto merge can decrease your workload and maybe u assign someone to review the PR's and when they approve it Dependabot merge the PR. Also how we are gonna able to increase code coverage? |
@Ali-Razmjoo The rationale is, that currently updating the dependencies before every release works. Personal opinion: {
"extends": ["config:recommended", "group:all"]
} We can reopen this PR
|
Description
Following the discussion Automatic Dependencies Updates, I have written two new configuration files. By using this, you don't have to click merge every time or execute the
npm update
; either dependency updates made bydependabot
will automatically merge after passing CI tests.The reason this is more beneficial is that we can receive dependency updates, including security updates, without waiting for feature pull requests to finish and it won't block continued development or add more hassles and manual work.
Files descriptions:
.github/dependabot.yml
: Configures Dependabot to update npm packages, Docker, and GitHub Actions daily..github/workflows/dependabot-auto-merge.yml
: Sets up an auto-merge GitHub Actions workflow for Dependabot PRs if they pass the tests.Type of change
Please delete any options that are not relevant.
Checklist
(including JSDoc for methods)
Screenshots (if any)