Skip to content

kbukum1/dependabot-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bump Core

Bump Core is a library containing the logic to keep a project's Ruby, JavaScript and Python dependencies up to date. It is used by applications like Bump and Dependabot.

Setup

To run Bump Core, you'll need both Ruby and Node installed. The main library is written in Ruby, and JavaScript is required for dealing with package.json and yarn.lock files.

Before running Bump Core, install dependencies for the core library and the helpers:

  1. bundle install
  2. cd helpers/javascript && yarn install && cd -
  3. cd helpers/php && composer install && cd -

Internals

Bump Core has helper classes for seven concerns:

Service Description
Bump::FileFetchers Fetches the relevant dependency files for a project (e.g., the Gemfile and Gemfile.lock).
Bump::FileParsers Parses a dependency file and extracts a list of dependencies for a project.
Bump::UpdateCheckers Checks whether a given dependency is up-to-date.
Bump::FileUpdaters Updates a dependency file to use the latest version of a given dependency.
Bump::MetadataFinders Looks up metadata about a dependency, such as its GitHub URL.
Bump::PullRequestCreator Creates a Pull Request to the original repo with the updated dependency file.
Bump::PullRequestUpdater Updates an existing Pull Request with new dependency files (e.g., to resolve conflicts).

Contributing

We'd love to see the following improvements to Bump Core:

  • Support for Pipenv in Python.
  • Support for npm5 in JavaScript.
  • Support for additional languages (Elixir, anyone?)

GoCardless ♥ open source. If you do too, come join us.

About

🤖 Dependabot's core logic for creating update PR's.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 88.2%
  • C# 9.2%
  • JavaScript 0.9%
  • Dockerfile 0.5%
  • Shell 0.4%
  • PHP 0.4%
  • Other 0.4%