use getOptions method to fetch commit data