Update for current github api

Current codes are not compatible with github api response.
So modify some lines for current github response.