This adds support to manage PRs on Github.
It relies on the default api client which pulls the github token from the same config file gh uses. It does not, however, use gh.
Each of the functions only requires a repo name to make a request. It will infer the owner from the supported repos: gutenberg , jetpack, gutenberg-mobile, Wordpress-Android , and WordPress-iOS . Since this tool is not meant a general purpose tool, the github functions will fail it trying to access any other repos.
The orgs for the repos can be changed by using the following env variables :
GBM_WORDPRESS_ORG - for access to gutenberg repo
GBM_WPMOBILE_ORG - for access to gbm and the main apps
GBM_AUTOMATTIC_ORG - for access to jetpack
This adds support to manage PRs on Github. It relies on the default api client which pulls the github token from the same config file
gh
uses. It does not, however, usegh
.Each of the functions only requires a repo name to make a request. It will infer the owner from the supported repos:
gutenberg
,jetpack
,gutenberg-mobile
,Wordpress-Android
, andWordPress-iOS
. Since this tool is not meant a general purpose tool, the github functions will fail it trying to access any other repos.The orgs for the repos can be changed by using the following env variables :
GBM_WORDPRESS_ORG
- for access to gutenberg repoGBM_WPMOBILE_ORG
- for access to gbm and the main appsGBM_AUTOMATTIC_ORG
- for access to jetpackTesting: Install go if not installed
From the
cli
directory rungo test ./..