Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariocj89/dothub
Stop managing your github config like a mere human
https://github.com/mariocj89/dothub
cli github hooks tool web workspace
Last synced: 2 months ago
JSON representation
Stop managing your github config like a mere human
- Host: GitHub
- URL: https://github.com/mariocj89/dothub
- Owner: mariocj89
- License: mit
- Created: 2016-12-18T23:57:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T19:47:42.000Z (over 1 year ago)
- Last Synced: 2024-10-14T14:11:08.836Z (3 months ago)
- Topics: cli, github, hooks, tool, web, workspace
- Language: Python
- Size: 169 KB
- Stars: 14
- Watchers: 4
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
|Build Status| |PyPI Version| |Code Health| |Coveralls Report|
dothub
======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!Install
=======``pip install dothub``
Usage
=====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 updatedThis creates a file that represents your repo configuration
Updating from local changes:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^.. code:: bash
dothub push mariocj89/dothub
Changes:
+ root['collaborators']['dnaranjo89']
+ root['labels']['new-tag']
C root['hooks']['travis']['active'] (True -> False)
Apply changes? [Y/n]: Y
Updated!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 ``
Updating from local changes:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^``dothub push ``
Updating all repositories within an organization
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^You can update all the repositories of an organization from your
.dothub.repo.yml file.To make a repo configuration be a template for all the repositories
of your org you can use dothub as follows:.. code:: bash
dothub pull .dothub.org.repos.yml
dothub push --bulk org/*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.FAQ
===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
dothubI 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:: https://travis-ci.org/mariocj89/dothub.svg?branch=master
:target: https://travis-ci.org/mariocj89/dothub
.. |PyPI Version| image:: https://img.shields.io/pypi/v/dothub.svg
:target: https://pypi.python.org/pypi/dothub/
.. |Code Health| image:: https://landscape.io/github/mariocj89/dothub/master/landscape.svg?style=flat
:target: https://landscape.io/github/mariocj89/dothub/master
.. |Coveralls Report| image:: https://coveralls.io/repos/github/mariocj89/dothub/badge.svg
:target: https://coveralls.io/github/mariocj89/dothub