Get commits of a repository and return info about commits that contain a search query (string) in commit message.
Inputs:
- Repository url
- String to search for
API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#list-commits
- Handling network exceptions and code safeness
- Readability and extensibility.