Skip to content

A simple script that demonstrates how to use Dependabot Core

Notifications You must be signed in to change notification settings

deivid-rodriguez/dependabot-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependabot Update Script Dependabot Status

This repo contains two scripts that demonstrates Dependabot Core. It is intended to give you a feel for how Dependabot Core works so that you can use it in your own project.

If you're looking for a hosted, feature-rich dependency updater then you probably want Dependabot itself.

Setup and usage

  • bundle install
  • Optional step for some langauges:
    • JS (Yarn): cd "$(bundle show dependabot-core)/helpers/yarn" && yarn install && cd -
    • JS (npm): cd "$(bundle show dependabot-core)/helpers/npm" && yarn install && cd -
    • Python: cd "$(bundle show dependabot-core)/helpers/python" && pyenv exec pip install -r requirements.txt && pyenv local 2.7.15 && pyenv exec pip install -r requirements.txt && pyenv local --unset && cd -
    • PHP: cd "$(bundle show dependabot-core)/helpers/php" && composer install && cd -
    • Elixir: cd "$(bundle show dependabot-core)/helpers/elixir" && mix deps.get && cd -
    • Java (Gradle): cd "$(bundle show dependabot-core)/helpers/gradle/buildfile_parser" && gradle jar && mv build/libs/buildfile_parser.jar ../ && cd - && cd "$(bundle show dependabot-core)/helpers/gradle/settings_file_parser" && gradle jar && mv build/libs/settings_file_parser.jar ../ && cd -
  • bundle exec irb
  • Edit the variables at the top of the script you're using, or set the corresponding environment variables.
  • Copy and paste the script into the Ruby session to see how Dependabot works

If you run into any trouble with the above please create an issue!

The scripts

About

A simple script that demonstrates how to use Dependabot Core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%