Twenga / twgit

Twgit is a free and open source assisting tools for managing features, hotfixes and releases on Git repositories. It provides simple, high-level commands to adopt the branching model describes in our documentation. Supported OS: Debian/Ubuntu Linux, Mac OS X 10.8 (Mountain Lion) or lower.
http://twgit.twenga.com/
Other
111 stars 34 forks source link

Create a specific file configuration for each project #143

Open ltoussaint opened 10 years ago

ltoussaint commented 10 years ago

Actually, we can configure connectors on the twgit main config file. But we all have several projects, may using different connectors.

The goal is to move this kind of configuration in a file stored in project root.

I think we can move all TWGIT_FEATURESUBJECT* configs but not TWGIT_FEATURE_SUBJECT_CONNECTOR_PATH which is a twgit configuration.

geoffroy-aubry commented 10 years ago

This is already possible with #88. Example of a .twgit config file stored in a project's root:

#!/usr/bin/env bash

TWGIT_FEATURE_SUBJECT_CONNECTOR='redmine'           # in {'', 'github', 'redmine'}
TWGIT_FEATURE_SUBJECT_CONNECTOR_PATH="$TWGIT_INC_DIR/connectors/feature_subject_%s.sh"  # où %s est un $TWGIT_FEATURE_SUBJECT_CONNECTOR
TWGIT_FEATURE_SUBJECT_REDMINE_API_KEY='xxx' # API key is a 40-byte hexadecimal string.
TWGIT_FEATURE_SUBJECT_REDMINE_DOMAIN='xxx'      # e.g. 'www.redmine.org'
ltoussaint commented 10 years ago

Hum good Maybe we should add it in the documentation, I didn't find this feature

Also, maybe we should automatically create this file with twgit init?