This commit is contained in:
+22
-24
@@ -7,8 +7,6 @@ import sys
|
|||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
|
|
||||||
import requests
|
|
||||||
|
|
||||||
|
|
||||||
from executor.visitor import Visitor
|
from executor.visitor import Visitor
|
||||||
from executor.state import State
|
from executor.state import State
|
||||||
@@ -46,31 +44,31 @@ def handle_git(args):
|
|||||||
REPOSITORY = INPUT_REPOSITORY
|
REPOSITORY = INPUT_REPOSITORY
|
||||||
REF = INPUT_REF
|
REF = INPUT_REF
|
||||||
|
|
||||||
response = requests.get(
|
#response = requests.get(
|
||||||
url='https://codex.r10x.net/api/v1/repos/meta/dsl',
|
# url='https://codex.r10x.net/api/v1/repos/meta/dsl',
|
||||||
headers={
|
# headers={
|
||||||
# 'Authorization': INPUT_TOKEN,
|
# 'Authorization': INPUT_TOKEN,
|
||||||
# 'Authorization': f'token {INPUT_TOKEN}',
|
# 'Authorization': f'token {INPUT_TOKEN}',
|
||||||
'Authorization': f'Bearer {INPUT_TOKEN}',
|
# 'Authorization': f'Bearer {INPUT_TOKEN}',
|
||||||
'Content-Type': 'application/json',
|
# 'Content-Type': 'application/json',
|
||||||
'Accept': 'application/json'
|
# 'Accept': 'application/json'
|
||||||
}
|
# }
|
||||||
)
|
#)
|
||||||
print(response)
|
#print(response)
|
||||||
print(response.status_code)
|
#print(response.status_code)
|
||||||
print(response.json())
|
#print(response.json())
|
||||||
|
|
||||||
octokit = Octokit(
|
#octokit = Octokit(
|
||||||
url='https://codex.r10x.net/api/v1',
|
# url='https://codex.r10x.net/api/v1',
|
||||||
headers={
|
# headers={
|
||||||
'Authorization': f'Bearer {INPUT_TOKEN}'
|
# 'Authorization': f'Bearer {INPUT_TOKEN}'
|
||||||
}
|
# }
|
||||||
)
|
#)
|
||||||
owner = 'meta'
|
#owner = 'meta'
|
||||||
repo = 'dsl'
|
#repo = 'dsl'
|
||||||
client = octokit.repo(owner, repo)
|
#client = octokit.repo(owner, repo)
|
||||||
response = client.get()
|
#response = client.get()
|
||||||
print(response)
|
#print(response)
|
||||||
|
|
||||||
def escape(text):
|
def escape(text):
|
||||||
return '"' + text + '"'
|
return '"' + text + '"'
|
||||||
|
|||||||
Reference in New Issue
Block a user