added function to retrieve jobs state for a specific commit
added function to retrieve jobs state for a specific commit