How to get all my commits + messages across all repositories from the last 7 days, sorted by repo?

How to get all my commits + messages across all repositories from the last 7 days, sorted by repo?

I tried it in the explorer (https://developer.github.com/v4/explorer/), but only got commits from one specified repository. I’d like to get commits from all repositories I contributed to, optionally adding a filter to only show commits from my organization. 

The GraphQL search connection currently doesn’t support code results, including commits. You’ll probably want to use the REST APi for now.

I hope that helps!

Phifa, do you mind sharing the code you used to search commits (even though it was one repo)?

Thanks,
Dan