Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a specific file configuration for each project #143

Open
ltoussaint opened this issue Aug 31, 2014 · 2 comments
Open

Create a specific file configuration for each project #143

ltoussaint opened this issue Aug 31, 2014 · 2 comments

Comments

@ltoussaint
Copy link
Member

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_FEATURE_SUBJECT_* configs but not TWGIT_FEATURE_SUBJECT_CONNECTOR_PATH which is a twgit configuration.

@geoffroy-aubry
Copy link
Member

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
Copy link
Member Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants