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

Global Twitter Config #297

Open
ashfurrow opened this issue Mar 10, 2016 · 4 comments
Open

Global Twitter Config #297

ashfurrow opened this issue Mar 10, 2016 · 4 comments
Labels

Comments

@ashfurrow
Copy link

Hey there! Love this, really nice 👌 I was wondering if it were possible to configure the twitter plugin globally, for all repos. I've already followed the steps for enabling lolcommits for all repos which worked 👍 but I'm hoping to try tweeting all my captured commits.

If this isn't possible, but is something you're amenable to adding, I'd be happy to tackle it if you could point me in the right direction. Thanks again!

@matthutchinson
Copy link
Member

Sorry, currently this isn't possible, since the confirmation for every app is located in the lolcommits folder for that repo.

That said, it might be possible for you to set the LOLCOMMITS_DIR to be the same directory for all your repositories. In that way the same config would be used, but you'd also end up with all the commit captures for all repos in the same directory, which would probably be OK, since they are named with the git sha.

@matthutchinson
Copy link
Member

Alternatively, we could introduce another ENV var / setting arg to control where the config file should be located, or have some sort of file order preference, where (for example) if ~/.lolcommits-config existed, that would have precedence.

@ashfurrow
Copy link
Author

No need to apologize! My understanding was LOLCOMMITS_DIR is the directory within which the other directories are placed – if not, that would work 👍

I'm interested in writing the file order precedence feature, I'll try to look at it this weekend. If you have any suggestions about where/how to approach, let me know, otherwise I'll dig in and see if I run into trouble.

@matthutchinson
Copy link
Member

Actually you are correct, LOLCOMMITS_DIR is the director within which all repo captures are placed.
So the only way to achieve this right now, would be to create symlinks for all your config.ml files within these folders, symlinking them to one that you configured. All a bit of a hack.

If you do start to look into this, have a look at Lolcommits::Configuration particularly here.

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

2 participants