Skip to main content

Manage your github repo as code!

Project description

|Build Status| |PyPI Version| |Code Health| |Coveralls Report|


Stop managing your github configuration through an UI like a mere human
and do everything through beautiful config YAML files.

dothub allows you to declare your configuration in a config file and
update it by just updating the file. This way you can configure your
labels, collaborators, default repo and organization parameters and
other as code and have them version controlled.

If you are not sure how to configure something through the config file
just change it in the UI and sync it locally with your file, you will
see the changes! Next time you wont need to do any clicks!


``pip install dothub``


The first time you run dothub it will run a wizard to help you configure
your credentials.

Repository configuration

Retrieve locally:

.. code:: bash

$ dothub pull mariocj89/dothub
.dothub.repo.yml updated

This creates a file that represents your repo configuration

Updating from local changes:

.. code:: bash

dothub push mariocj89/dothub
+ root['collaborators']['dnaranjo89']
+ root['labels']['new-tag']
C root['hooks']['travis']['active'] (True -> False)
Apply changes? [Y/n]: Y

You can check the repo configuration in github. dnarnajo89 has been
invited as a collaborator, travis hooks have been disabled and you have
a new awesome "new-tag"

Organization Configuration

Retrieve locally:

``dothub pull <org_name>``

Updating from local changes:

``dothub push <org_name>``

Updating all repositories within an organization

You can update all the repositories of an organization from your
.dothub.repo.yml file.

You can just do ``dothub pull <org/repo>``
from a repo with the default configuration and then ``dothub push --bulk org/* ``
to configure all the repositories. Note that some repository specific
options like the name or the description will be ignored on the update.

Future features

This is justa prototype, dothub aims to be the configuration tool for
your whole github see
`here <>`__
for the features that are going to come available soon.


How can I retriger the reconfigure step?

Just run dothub configure

How can I use the tool if I am need to provide a custom SSL certificate?

Pass the envvar REQUESTS\_CA\_BUNDLE=YOURCERTPATH.cer before running

I don't want the tool to manage a part of the config

Just remove that part! If there is full section missing (hooks, options,
members, etc.). It will be ignored

.. |Build Status| image::
.. |PyPI Version| image::
.. |Code Health| image::
.. |Coveralls Report| image::

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dothub-0.16.1-py2.py3-none-any.whl (18.4 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page