fix use of deprecated github api