Github api tools 64/15264/30
authorAric Gardner <agardner@linuxfoundation.org>
Thu, 11 Apr 2019 20:35:20 +0000 (16:35 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Mon, 10 Jun 2019 19:53:41 +0000 (15:53 -0400)
commitf03e4f5d6adc6950c984173017d32409d8f2fb6b
tree7b97299e37cd2c4dc3319b64d4c99888629ab655
parentad39a4d3375dee17282ad6673350d346fa063009
Github api tools

create-repo [OPTIONS] ORGANIZATION REPOSITORY DESCRIPTION
Create a Github repo within an Organization.
By default has_issues has_wiki and has_projects are set to false. See
--help to create a repo with these enabled.

modify-repo [OPTIONS] ORGANIZATION REPOSITORY
Modify a Github repo within an Organization.
By default has_issues has_wiki and has_projects are set to false. See
--help to use this command to enable these options

create-team [OPTIONS] ORGANIZATION NAME REPO PRIVACY
Create a Github team within an Organization.

list         List an Organization's GitHub repos.
  --audit          list members without 2fa
  --repos          list all repos
  --full           All members and their respective teams
  --teams          List avaliable teams
  --repofeatures   list enabled features for repos in an org
  --help           Show this message and exit.

user [OPTIONS] ORGANIZATION USER TEAM
Add and remove users
  --delete  remove user from a team within an org
  --admin   user is admin for org
  --help    Show this message and exit.

Github token is read from
~/.config/lftools/lftools.ini
In the form of:

[github]
token =

ISSUE: RELENG-1526
Change-Id: I558eb11897b555d26fac5abacb660d4bdb630a12
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
.coafile
docs/commands/github.rst [new file with mode: 0644]
docs/commands/index.rst
lftools/cli/__init__.py
lftools/cli/github_cli.py [new file with mode: 0644]
releasenotes/notes/github-create-334e11334f8b38ff.yaml [new file with mode: 0644]
requirements.txt