Added method to Badge that retrn commit query.