From deeae7e527bc990c832d3664929215f0fe4f4ae7 Mon Sep 17 00:00:00 2001 From: RemiZOffAlex Date: Sat, 21 Mar 2026 23:34:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20executor/cli/git.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- executor/cli/git.py | 46 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/executor/cli/git.py b/executor/cli/git.py index e3c34f7..7259edf 100644 --- a/executor/cli/git.py +++ b/executor/cli/git.py @@ -7,8 +7,6 @@ import sys import base64 import json -import requests - from executor.visitor import Visitor from executor.state import State @@ -46,31 +44,31 @@ def handle_git(args): REPOSITORY = INPUT_REPOSITORY REF = INPUT_REF - response = requests.get( - url='https://codex.r10x.net/api/v1/repos/meta/dsl', - headers={ + #response = requests.get( + # url='https://codex.r10x.net/api/v1/repos/meta/dsl', + # headers={ # 'Authorization': INPUT_TOKEN, # 'Authorization': f'token {INPUT_TOKEN}', - 'Authorization': f'Bearer {INPUT_TOKEN}', - 'Content-Type': 'application/json', - 'Accept': 'application/json' - } - ) - print(response) - print(response.status_code) - print(response.json()) + # 'Authorization': f'Bearer {INPUT_TOKEN}', + # 'Content-Type': 'application/json', + # 'Accept': 'application/json' + # } + #) + #print(response) + #print(response.status_code) + #print(response.json()) - 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) + #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 + '"'