From c2c1139cb296b0cd3c2a53f5acbac84682a85ff7 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sat, 17 Aug 2024 16:09:36 +0700 Subject: [PATCH] Remove function to get list of branches from a GitHub repository --- Scripts/github.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Scripts/github.py b/Scripts/github.py index 6e09bb7..eab717a 100755 --- a/Scripts/github.py +++ b/Scripts/github.py @@ -20,18 +20,6 @@ class Github: if response.get("rate").get("remaining") == 0: raise Exception("Please try again later, you have exhausted your GitHub REST API request quota") - def get_list_branches(self, owner, repo): - self.check_ratelimit() - - url = "https://api.github.com/repos/{}/{}/branches".format(owner, repo) - - response = self.fetcher.fetch_and_parse_content(url, "json") - - if not response: - return [] - - return response - def get_latest_artifact(self, owner, repo): results = []