# HG changeset patch # User Peter Sanchez # Date 1576786144 28800 # Thu Dec 19 12:09:04 2019 -0800 # Node ID 1b60a8ba9cf252c66297c580a3919570dba73641 # Parent 03214b9b651c294319f06d5b9700c8fa98710a14 Adding repoaccess.py to README. diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -14,3 +14,33 @@ call to fit virtually any webhook endpoint. [tb]: https://hg.code.netlandish.com/~netlandish/django-trello-broker + +## repoaccess.py + +Simple utility script to grant user access to a repository. + +Usage: + +``` +$ root:code ~ # repoaccess.py -h +usage: repoaccess.py [-h] repo_type repository username perms + +Give access to hg or git repositories. + +positional arguments: + repo_type Repository type (hg or git) + repository Repository name (~username/repo_name) + username Username of user you're giving access to. + perms Permissions being granted (ro or rw) + +optional arguments: + -h, --help show this help message and exit +$ +``` + +**Note:** The user being granted access has to have at least logged into the +individual code websites (ie, visited your hg.srht.domain.com). This is because +the various apps (hg, git, the rest) use a SSO pattern and when initially +visiting one of the individual apps, the user will be verified and stored in +the app specific database. This script will not work without the user data +stored in the database.