{"id":22466920,"url":"https://github.com/mavimo/git-redmine-utilities","last_synced_at":"2025-03-27T15:20:12.279Z","repository":{"id":66615135,"uuid":"21323541","full_name":"mavimo/git-redmine-utilities","owner":"mavimo","description":"This is a Git-Redmine integration utility scripts.","archived":false,"fork":false,"pushed_at":"2014-09-30T14:10:06.000Z","size":208,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-24T07:55:00.678Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mavimo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-29T13:14:31.000Z","updated_at":"2014-12-10T15:11:35.000Z","dependencies_parsed_at":"2023-02-20T12:01:02.536Z","dependency_job_id":null,"html_url":"https://github.com/mavimo/git-redmine-utilities","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fgit-redmine-utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fgit-redmine-utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fgit-redmine-utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fgit-redmine-utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mavimo","download_url":"https://codeload.github.com/mavimo/git-redmine-utilities/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245868327,"owners_count":20685609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-06T10:14:39.596Z","updated_at":"2025-03-27T15:20:12.213Z","avatar_url":"https://github.com/mavimo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Info\n\nYou can find some utils scripts that can be used to improve your workflow using\ngitflow and redmine.\nOn redmine each issue have a specific subject composed by story code and story\nname. The story code is composed from project code and story number, eg.:\n\n```\nAB-123 - Story name: first item specification\nCD-35 - Other story: other item specification\n```\n\nUsing gitflow in our process development each issue is processed in a different\nbranch. The branch name is composed from story code, issue number and issue\nsubject, eg.:\n\n```\nAB-123_9593_story_name_first_item_specification\nCD-35_6053_other_story_other_item_specification\n```\n\n# Install\n\nYou need to install [python-redmine](https://github.com/maxtepkeev/python-redmine):\n\n```\neasy_install python-redmine\n```\n\nThen clone the current repository:\n\n```\ngit clone https://github.com/mavimo/git-redmine-utilities.git\n```\n\nAnd copy the ```git-redmine``` script on your bin folder:\n\n```\ncp git-redmine /usr/bin/git-redmine\n```\n\n# Configuration\n\nStart your configuration coping the ```.redmine.cfg.dist``` file in your home\ndirectory or in the git folder and rename it to ```.redmine.cfg``` eg:\n\n```\ncp .redmine.cfg.dist ~/.redmine.cfg\n```\nand edit the ```~/.redmine.cfg``` file:\n\n```\n[Redmine]\nhostname=\nusername=\npassword=\n\n[Pattern]\nbranch=%(story_prefix)-%(story_code)_%(issue_id)_%(story_name)\nmessage=refs #%(issue_id): %(story_prefix)-%(story_code) - %(story_name):\n```\n\nconfiguring the redmine ```hostname``` (no trailing slash), ```username``` and\n```password```. You can also customize ```branch``` and ```message``` pattern.\n\nYou shuld also copy the ```prepare-commit-msg``` in ```.git/hooks``` folder.\n\n# Usage\n\nInit git in the project folder and gitflow:\n\n```\nmkdir project-folder\ncd $_\ngit init\ngit flow init\n```\n\nthen copy the ```prepare-commit-msg``` as described on _configuration_ section.\n\nNow we can start a new feature using the appropriate pattern on branch creation\nwith the specified pattern with:\n\n```\ngit redmine [ISSUE_ID]\n```\neg:\n\n```\n~/project-folder (develop) $ git redmine 6053\n\nSwitched to a new branch 'feature/CD-35_6053_other_story_other_item_specification'\n\nSummary of actions:\n- A new branch 'feature/CD-35_6053_other_story_other_item_specification' was created, based on 'develop'\n- You are now on branch 'feature/CD-35_6053_other_story_other_item_specification'\n\nNow, start committing on your feature. When done, use:\n\n     git flow feature finish CD-35_6053_other_story_other_item_specification\n```\nEdit and add file on staging area, when you need to commit you can just write:\n```\ngit commit\n```\nand the script automatically generate the commit message in accord with pattern\nspecified on configuration, then you can improve the commit message:\n```\nrefs #6053: CD-35 - Other story: other item specification:\n# Please enter the commit message for your changes. Lines starting\n# with '#' will be ignored, and an empty message aborts the commit.\n# On branch feature/CD-35_6053_other_story_other_item_specification\n# Changes to be committed:\n#       new file:   test.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavimo%2Fgit-redmine-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmavimo%2Fgit-redmine-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavimo%2Fgit-redmine-utilities/lists"}