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

Choosing config depending the repository #88

Closed
Sebastien-Hanicotte opened this issue Jan 11, 2013 · 2 comments
Closed

Choosing config depending the repository #88

Sebastien-Hanicotte opened this issue Jan 11, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@Sebastien-Hanicotte
Copy link
Member

I actually work with 2 differents repository :

  • one for my current job
  • the other one is the github for twgit

For the first one, we use Redmine as a Subject Connector and for the other I need to be using GITHUB in order to comment the [INIT] commit of all the features started with the correct Subject automaticaly.

It would be interesting to be able to overload all or part of the default config file depending the project you're working on.

@Sebastien-Hanicotte
Copy link
Member Author

I'm planning to use a file .twgit user will have to put a the root directory of its project.

This .twgit will be a copy of the conf/twgit.sh with the header #!/bin/bash and all the config environment params he wants to alter

Example of .twgit file :

#!/bin/bash

##
# twgit secondary config file
#
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

Sebastien-Hanicotte added a commit to Sebastien-Hanicotte/twgit that referenced this issue Jan 15, 2013
@chemidy
Copy link

chemidy commented Jan 22, 2013

I work in the same context, so Good news !!!

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

No branches or pull requests

3 participants