diff --git a/executor/cli/git.py b/executor/cli/git.py index ff13add..aaa8a79 100644 --- a/executor/cli/git.py +++ b/executor/cli/git.py @@ -12,6 +12,7 @@ from executor.visitor import Visitor from executor.state import State from executor.core import config from executor.handlers.config import handle_config +from executor.octokit import Octokit def json_read(filename): @@ -43,6 +44,18 @@ def handle_git(args): REPOSITORY = INPUT_REPOSITORY REF = INPUT_REF + octokit = Octokit( + url='https://codex.r10x.net/api/v1', + headers={ + 'Authorization': f'Bearer {INPUT_TOKEN}' + } + ) + owner = 'meta' + repo = 'dsl' + client = octokit.repo(owner, repo) + response = client.get() + print(response) + def escape(text): return '"' + text + '"'