Home > Net >  is there a way to create a GitHub pull request which updates the version of a submodule to the lates
is there a way to create a GitHub pull request which updates the version of a submodule to the lates

Time:11-16

Same as this question Pull latest changes for all git submodules but I am looking for a way to create a GitHub pull request which updates the version of that submodule to the latest commit on its main branch. This is to be run on a regular schedule and also automatically add a set of GitHub users as reviewers on the pull request. Is this possible? any suggestions would be great. Couldn't find a way to create a PR anywhere online. All answers point to pulling the changes

CodePudding user response:

I would suggest you to use Dependabot that creates pull requests to keep your dependencies secure and up-to-date. As example, for git submodules, just add a file like this:

.github/dependabot.yml

# This dependabot.yml file will updates git submodules
version: 2
updates:

  # Maintain dependencies git submodules
  - package-ecosystem: "gitsubmodule"
    directory: "/"
    schedule:
      interval: "daily"

More info also here

  • Related