Git porcelain to interface with Redmine
Project description
Redmine integration to git.
Configuration
Add the following snippet to your .config/git/config file.:
[redmine] url = https://redmine.mycompany.org/ key = apikey OR username = username password = password
Usage
project
Show the current default project.
project set
Set the current default project for this repository, useful for creating new issues.:
git redmine project set myproject-id
rebase
Checkout master, pull origin/master on master then rebase current feature branch on master, if it fails it reset the branch. Checkout the original branch after all this.
git redmine rebase
issue new
Given a default project, create a new issue, an editor is launched to define subject and description of the issue.:
git redmine issue new
issue take
Handle the given issue by creating or switching to a branch named wip/<issue-number>-<slugified-issue-subject> forking from master.:
git redmine issue take 123
It will propose applying patches attached to the issue.
issue show
Show information about the current issue.:
git redmine issue show
Show informations about issue 9999.:
git redmine issue show --issue 9999
issue submit
It first does a git redmine rebase then use git format-patch to create the patch serie from master and attach it to the current issue. An editor is launched to add a commment.:
git redmine issue submit
To submit only the last commit:
git redmine issue submit 1
To submit the last commit to issue 9999:
git redmine issue submit --issue 9999 1
issue apply
Apply patches attached to the current issue.:
git redmine issue apply
Apply patched atteched to issue 9999.:
git redmine issue apply --issue 9999
link
git redmine link 9999
Link current branch issue to issue 9999.
merge-and-push
Merge current feature branch in a target branch (default is master), push target branch to origin, delete feature branch locally and on origin; if before that those operations pass: pull-rebase the target branch, rebase feature branch on target.
git rebase merge-and-push
clean
Remove local and remote branch for issues closed more than 21 days ago. Use –no-local to only clean local branches.
git redmine clean [–local/–no-local]
Project details
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
File details
Details for the file git-redmine-1.1.0.tar.gz
.
File metadata
- Download URL: git-redmine-1.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c5c187c65ed3057c0862115c91fbce3922d8e3ecc0f003dc281e6bc00ac35a0 |
|
MD5 | 44093b4da21af53c7c8faeb0e870177e |
|
BLAKE2b-256 | 0baee2e5b580bc687aef67c5c1b811a48798ff5cdfd2b6acc0f667c7efbe7f2c |
File details
Details for the file git_redmine-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: git_redmine-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8684e23d1e5898a9d8ca8d6cf17cb5748eef9afd34edc664405960e9e7a21af6 |
|
MD5 | 40f0a1b6bf58711fd014aec9f39b615c |
|
BLAKE2b-256 | 5ca35245f5d1ba43d1db2b39cfe80752f0daa2c169cca699d5f3fe67512986a1 |