Git Portfolio
Project description
Features
Configure multiple working repositories.
Batch git commands with subcommands: add, branch, checkout, commit, diff, fetch, init, merge, mv, pull, push, rebase, reset, rm, show, switch, status and tag.
Batch API calls on GitHub: create/close/reopen issues, create/close/reopen/merge pull requests and delete branches by name.
Batch Poetry commands such as: add, version patch, install or update.
Requirements
Create an auth token for GitHub, with the repo privileges enabled by clicking on Generate new token. You will be asked to select scopes for the token. Which scopes you choose will determine what information and actions you will be able to perform against the API. You should be careful with the ones prefixed with write:, delete: and admin: as these might be quite destructive. You can find description of each scope in docs here.
Important: safeguard your token (once created you won’t be able to see it again).
Install git (optional) - this is needed for all git commands. For colored outputs please use the configuration:
$ git config --global color.ui always
Installation
You can install Git Portfolio via pip from PyPI:
$ pip install git-portfolio
Basic usage
Create initial configuration with:
$ gitp config init
Execute all the commands you want. Eg.:
$ gitp issues create # create same issue for all projects
$ gitp checkout -b new-branch # checks out new branch new-branch in all projects
$ gitp poetry version minor # bumps minor version of all projects that have pyproject.toml version
Note: by convention GitHub commands are always the resource name and action: eg. branches delete, issues create and prs merge (for pull requests). This avoid conflicts with batch git commands, as in gitp branch (executes git command) and gitp branches delete (execute operations using GitHub API).
Complete instructions can be found at git-portfolio.readthedocs.io.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, Git Portfolio is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @cjolowicz’s Hypermodern Python Cookiecutter template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for git_portfolio-0.20.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baf1a2f4b61b60ac64cef301025cc2bbf9993dba523d74d96e004eb54ddc3087 |
|
MD5 | 6ba53f46695506baceb7bf0164cb420f |
|
BLAKE2b-256 | f1f4f03c168ec908d4746e912476b47608f1e09f9334e71d27a2a8006157d4b0 |