This commit is contained in:
+22
-24
@@ -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 + '"'
|
||||
|
||||
Reference in New Issue
Block a user