https://github.com/matsubara0507/octbook
Invite GitHub Organizations or GitHub Organizations Team by config
https://github.com/matsubara0507/octbook
haskell-application
Last synced: about 1 year ago
JSON representation
Invite GitHub Organizations or GitHub Organizations Team by config
- Host: GitHub
- URL: https://github.com/matsubara0507/octbook
- Owner: matsubara0507
- License: mit
- Created: 2019-11-14T14:10:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T06:29:13.000Z (over 6 years ago)
- Last Synced: 2025-02-02T18:47:00.969Z (over 1 year ago)
- Topics: haskell-application
- Language: Haskell
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# octbook

Invite GitHub Organizations or GitHub Organizations Team by config YAML:
```yaml
- id: matsubara0507
name: MATSUBARA Nobutada
org: IGGG
teams: []
- id: octcat
name: Octcat
org: github
teams:
- developer
```
## Requirement
Docker or Haskell Stack
## Usage
```
$ octbook --help
octbook [options] [input-file]
-h --help Show this help text
--version Show version
-v --verbose Enable verbose mode: verbosity level "debug"
--users=IDS Filter users
--teams=IDS Filter teams
--invite=(org|team) Invite user to GitHub Org or Team
--kick=(org|team) Kick user from GitHub Org or Team
```
### Invite Organization
```
$ octbook --invite=org --users=matsubara0507 path/to/.octbook.yaml
```
### Kick Organization
```
$ octbook --kick=org --users=matsubara0507 path/to/.octbook.yaml
```
### Invite Organization Team
```
$ octbook --kick=team --users=matsubara0507 --teams=Sample path/to/.octbook.yaml
```
### Kick Organization Team
```
$ octbook --kick=team --users=matsubara0507 --teams=Sample path/to/.octbook.yaml
```
### Docker
use [matsubara0507/octbook](https://github.com/matsubara0507/octbook/packages)
```
$ docker run -v `pwd`:/work docker.pkg.github.com/matsubara0507/octbook/cli --help
```
## Build
```
$ stack build
```
### Docker
```
$ stack --docker build -j 1 Cabal # if out of memory in docker
$ stack --docker --local-bin-path=./bin install
$ docker build -t matsubara0507/octbook . --build-arg local_bin_path=./bin
```
or
```
$ make image tag=matsubara0507/octbook
```