Skip to content

klauern/ownershit

Repository files navigation

Ownershit

Manage repository ownership with your organization's repositories.

Usage

This tool expects a yaml file called repositories.yaml in the path you run this, but you can override this with the --config flag.

repositories.yaml

organization: <your organization>

team:
  - name: <a team name with admin privileges>
    level: admin
  - name: <a team name with read-only permissions>
    level: pull
  - name: <a-team-with-write-permissions>
    level: push

repositories:
  - name: my-repo
    wiki: true # enables wiki on repo (default: false)
    issues: true # enables issues on the repo (default: false)
    projects: true # enables projects on the repo (default: false)
  - name: another-one
    # wiki, issues, and projects are disabled if not specified

Running

go run main.go