Code refactoring
fabiosangregorio
released this
11 Apr 09:42
·
33 commits
to master
since this release
NEW
- Complete code refactoring using classes and exceptions. This eliminates the need of multiple return values and decreases logical complexity.
- Made project a python module in order to be run with the
python -m telereddit
command - Add services-oriented paradigm to manage API providers for media retrieval, using authentication through API when needed.
- Add git-crypt for secrets management, adding secret into the repository and introducing per-environment secrets variables. Set the
TELEREDDIT_MACHINE
environment variable to enable this feature. (Note: dev, github and prod secrets are crypted in the repository and accessible only through a private GPG key. Use the generic secret to run the project) - Migrate CI/CD from Travis CI to Gtihub Workflow.
BUGFIXES
- Fix bug where r/imadeamistake would send the post twice
- Fix bug where some r/Eyebleach posts would fail to send
- Fix bug where some posts would be sent as a photo instead of gif