open-contracting / software-development-handbook

A guide for developers of OCP's tools
https://ocp-software-handbook.readthedocs.io/en/latest/
Other
4 stars 1 forks source link

Add workflow to auto-merge dependabot PRs #106

Closed jpmckinney closed 5 months ago

jpmckinney commented 6 months ago

How to: https://blog.phaizel.com/auto-merge-dependabot-pr-with-github-actions

Add workflows to:

Original with more security concerns: https://blog.somewhatabstract.com/2021/10/11/setting-up-dependabot-with-github-actions-to-approve-and-merge/

jpmckinney commented 5 months ago

If we get major upgrades again to dev dependencies, we can try using steps.dependabot-metadata.outputs.dependency-type matching direct:development (I think this is equivalent to Dependabot emails wth "deps-dev" in the subject).

https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#allow

jpmckinney commented 5 months ago

Had to edit the precommit job: https://github.com/open-contracting/lib-cove-oc4ids/commit/a627685f709ae7c1daa109273d67a569af38ce5a