Skip to content

A heroku buildpack to install gh (GitHub's official command line tool)

Notifications You must be signed in to change notification settings

codecrafters-io/heroku-buildpack-gh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku buildpack: gh

This is a Heroku buildpack that allows one to run gh (GitHub's official command line tool) in a dyno alongside application code.

Usage

Example usage:

$ heroku config:set GITHUB_TOKEN=`<github-personal-access-token>`

$ heroku buildpacks:add https://github.com/codecrafters-io/heroku-buildpack-gh

$ git push heroku master
...

remote: -----> gh app detected
remote: -----> Installing gh-2.5.0.... done
remote: -----> Installing profile.d script.... done

...

$ heroku run 'gh --version'
Running `gh --version` attached to terminal... up, run.3706
gh version 2.5.0 (2022-02-01)
https://github.com/cli/cli/releases/tag/v2.5.0

Testing

This buildpack is tested using heroku-buildpack-testrunner.

Build the heroku/buildpack-testrunner docker image and then run this command to run tests:

docker run -it -v $(pwd):/app/buildpack:ro heroku/buildpack-testrunner

About

A heroku buildpack to install gh (GitHub's official command line tool)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published