简体   繁体   中英

Is there any way to update a certain git submodule by dependabot?

There are many git submodules under the contrib directory of my repo. I want to configure my dependabot to only update contrib/proxy , How can I do this?

According to this doc , I find a directory config item. However, seems this must be equal to where .git is.

Should I use a allow config for contrib/proxy ?

I found the following works

version: 2
updates:
  - package-ecosystem: "gitsubmodule"
    directory: "/"
    allow:
      - dependency-name: "contrib/proxy"
    schedule:
      interval: "daily"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM