Open ltoussaint opened 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'
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
?
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.