I have an issue with the expected result and the actual result. Even though the fetchData() and fetchnumberOfCommits() methods are called from the
fetchData()
fetchnumberOfCommits()
As stated above you should remove it from componentWillMount as that has been deprecated as of 16.3. Should be able to drop it into a componentDidMount and it will work for you.