Giter Club home page Giter Club logo

upgrade-ruby-version's Introduction

Upgrade Ruby Version

A script to upgrade the version of Ruby used by a project.

Prerequisites

  • pipenv (brew install pipenv)
  • jq (brew install jq)

Setup

Create a .env file with the following contents:

GITHUB_ACCESS_TOKEN=personal_access_token

You'll need to create a personal access token with a repo scope so that you have write access to GOV.UK repositories.

It's advised not to use your personal GitHub account to create the access token, as another developer will need to approve the PRs. You can use govuk-ci GitHub account.

Install dependencies:

pipenv install

Configure the script

Configure which Ruby versions should be upgraded.

When upgrading a specific list of repos (e.g. only those owned by your team), set up the list of repos with hardcoded values:

repos = [
    'alphagov/authenticating-proxy',
    'alphagov/bouncer',
]

Run the script

This will open pull requests in every repository you've configured it to:

pipenv run python main.py

You can see the created PRs by visiting https://github.com/pulls.

upgrade-ruby-version's People

Contributors

agadufrat avatar benjamineskola avatar cdccollins avatar chrisbashton avatar dependabot[bot] avatar edwardkerry avatar issyl0 avatar murilodalri avatar thomasleese 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.