-
Notifications
You must be signed in to change notification settings - Fork 11
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
I wanted to clarify how to add repositories to config.yaml #13
Comments
You can't. Currently you need to add repositories only through commands to bot (that is why admin username is important - that is the user that will always be able to do that, otherwise it is limited to admins of a channel) or directly inserting them into sqlite. |
Please tell me how to add them directly to sqlite then |
If you add directly through a bot, I understand there through /new and /subscribe. Well, if you restart the container, all the added repositories will disappear? |
Well, you should keep sqlite database on a persistent store, as usual with any kind of state for any other application.
I'd suggest to look into the code, as SQL queries to do that are there: https://github.com/Civil/github2telegram/blob/master/db/sqlite.go#L214 But that shouldn't be used as a replacement for persistent storage on every restart. |
The text was updated successfully, but these errors were encountered: