Add Github action to auto merge dependabot and pyup security updates if all tests pass.
See original GitHub issueDescription
What are you proposing? How should it be implemented?
I propose to add a new GitHub action or job that will auto merge pull requests from the pyup bot
and the dependabot
should the PR so created has no merge conflicts with master and all tests also pass.
This will be very similar to how pre-commit tool versions in the repo root are kept up to date.
Rationale
Why should this feature be implemented?
This would make updating requirements easier and more automated and would likely also make the project more secure. The tests are used to make the decision to merge updates from dependabot and pyup right now anyway.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Automating Dependabot with GitHub Actions
This branch protection rule ensures that pull requests are not merged unless all the required status checks pass.
Read more >Automating dependency updates with Dependabot, GitHub ...
This tutorial shows how to set up a workflow to automatically merge low-risk dependency updates while streamlining the process to fix and ...
Read more >Setting up Dependabot with GitHub actions to approve and ...
The auto-merge setting for GitHub PRs is only useful for PRs that are not already passing all status checks. I do not know...
Read more >An Exploratory Study on GitHub Dependabot - arXiv
update PRs, automatically merge update PRs under certain conditions, and support more package ... der certain conditions (e.g., when all project tests pass....
Read more >Automating Dependency Updates in Practice: An Exploratory ...
Automated Dependency Update [DependabotConfig] : If a configuration file named dependabot.yml is added to a GitHub repository, Dependabot ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@browniebroke You can just go into GitHub marketplace and add dependabot-preview. Then you can select the repo, select which requirements files you want, choose the labels you want, and it’ll auto update, just like how pyup does it. You can see the outcome here where dependabot just litters my repo with updates to botocore and boto3 lmao.
You can find more info on configuring the auto merge here: https://dependabot.com/docs/config-file/#automerged_updates
If I’m not wrong, since GitHub bought dependabot, I think you don’t even need to register in dependabot. You can just create their .dependabot.yaml file… somewhere… I can’t remember.
I think this issue can be closed with the comments from #2872