Coder Social home page Coder Social logo

depfoo's Introduction

DEP-FOO

Dependencies manager for ruby based applications. We use it to keep our gems up to date in projects hosted on a community gitlab instance.

Getting started

To be able to use it, you will have to create your access token on: https://gitlab.example.org/-/profile/personal_access_tokens There are some configuration that must happen. For that you will need to add some variables to your scheduled job:

GITLAB_PROJECT_ID: That's your project ID.

For your project, one can find it with:

curl -s  'https://gitlab.example.org/api/v4/projects?search=foo/bar&search_namespaces=true' --header "PRIVATE-TOKEN: $TOKEN" | jq .[] | jq ."id"
=> 31337

GITLAB_USER_ID: The user that will be open the PR

That is the ID of the user, not the login. One way to find it is:

curl -s  'https://gitlab.example.org/api/v4/users?username=superuser' --header "PRIVATE-TOKEN: $TOKEN" | jq .[] | jq ."id"
=> 69

You can use different solvers like (minor, patch, major and strict). More information on https://bundler.io/man/bundle-update.1.html. Just pass it to parameter to depfoo.rb, check this for more information.

If everything goes well, there will be a new merge request on the target project

Disclaimer

This is a work of fiction. Names, characters, business, events and incidents are the products of the author's imagination. Any resemblance to actual persons, services, living or dead, or actual events is purely coincidental.

depfoo's People

Contributors

dependabot[bot] avatar josegomezr avatar vpereira avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.