Skip to content

Commit

Permalink
Merge pull request #1486 from otseng/main
Browse files Browse the repository at this point in the history
Update github access token
  • Loading branch information
eliranwong authored Dec 16, 2024
2 parents 06e2235 + d68067a commit 505f979
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
5 changes: 3 additions & 2 deletions uniquebible/util/ConfigUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1728,8 +1728,9 @@ def updateModules(module, isInstalled):
False)
config.help["githubAccessToken"] = """
# Github access token"""
token = "{0}_{1}0{2}".format('tuc', 'AAUqeeL85rzuqvqZCx4B', 'iu2CrbkH41IBZJE')
config.githubAccessToken = codecs.encode(token, 'rot_13')
token = "{0}_{1}_{2}".format('tvguho_cng', '11NNTRMXN0v3X2sTuLF0Yg', 'TNK81tX21MzjexjP4pnqTbV9l1tVADsn54ybj4s6PzKLRQ2IRKMa1whP3O2')
githubAccessToken = codecs.encode(token, 'rot_13')
setConfig("githubAccessToken", "githubAccessToken", githubAccessToken)
setConfig("includeStrictDocTypeInNote", """
# Include the strict doc type in first line of notes""",
True)
Expand Down
11 changes: 3 additions & 8 deletions uniquebible/util/GithubUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, repo=""):
if len(repo) > 0:
self.repo = self.g.get_repo(repo)

def printAllPersonalRepos(self):
def printAllRepos(self):
if self.repo:
for repo in self.g.get_user().get_repos():
print(repo.name)
Expand Down Expand Up @@ -72,11 +72,6 @@ def getShortname(filename):
if __name__ == "__main__":
from uniquebible.util.GitHubRepoInfo import GitHubRepoInfo

# github = GithubUtil(GitHubRepoInfo.bibles[0])
# github.printContentsOfRepo()

github = GithubUtil("otseng/UBA-Wiki")
github.printContentsOfRepo()
github.printBranches()
github.downloadFile("file.zip", "tree-2c12af93b64436c86869f58ce3e7b4ce24dd5772")
github = GithubUtil(GitHubRepoInfo.bibles[0])
github.printAllRepos()

0 comments on commit 505f979

Please sign in to comment.