mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-01-27 10:19:49 +00:00
Update the script based on the SHA of each commit
This commit is contained in:
@@ -19,6 +19,15 @@ 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_latest_commit(self, owner, repo):
|
||||
self.check_ratelimit()
|
||||
|
||||
url = "https://api.github.com/repos/{}/{}/commits".format(owner, repo)
|
||||
|
||||
response = self.fetcher.fetch_and_parse_content(url, "json")
|
||||
|
||||
return response[0]
|
||||
|
||||
def get_latest_artifact(self, owner, repo):
|
||||
results = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user