[#5] Moved GitHub API urls from macros to a function. Fixed dialyzer warnings.