Skip to content

Commit cc4e3cd

Browse files
authored
Merge pull request #1 from nomenarkt/feat/github-api-update
Feat/GitHub api update
2 parents df468b1 + b611b9c commit cc4e3cd

File tree

14 files changed

+87
-33
lines changed

14 files changed

+87
-33
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*.egg
5+
*.egg-info/
6+
dist/
7+
build/
8+
9+
# Virtualenv
10+
venv/
11+
12+
# System
13+
.DS_Store

.well-known/ai-plugin.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
},
1010
"api": {
1111
"type": "openapi",
12-
"url": "https://gpt-gateway-cigu.onrender.com/openapi.yaml",
12+
"url": "https://nomena-gpt.xyz/openapi.yaml",
1313
"has_user_authentication": false
1414
},
15-
"logo_url": "https://gpt-gateway-cigu.onrender.com/logo.png",
15+
"logo_url": "https://nomena-gpt.xyz/logo.png",
1616
"contact_email": "nomenaarison@gmail.com",
17-
"legal_info_url": "https://gpt-gateway-cigu.onrender.com/legal"
17+
"legal_info_url": "https://nomena-gpt.xyz/legal"
1818
}
1.25 KB
Binary file not shown.
1.22 KB
Binary file not shown.
1.49 KB
Binary file not shown.
2.17 KB
Binary file not shown.

actions/list_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
router = APIRouter()
77

8-
@router.get("/")
8+
@router.get("")
99
async def list_files(
1010
owner: str = Query(..., description="GitHub username or organization"),
1111
repo: str = Query(..., description="GitHub repository name"),

actions/read_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
router = APIRouter()
77

8-
@router.get("/")
8+
@router.get("")
99
async def read_file(
1010
owner: str = Query(..., description="GitHub username or organization"),
1111
repo: str = Query(..., description="GitHub repository name"),

actions/scan_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ScanRepoPayload(BaseModel):
1313
branch: str = "main"
1414
depth: int = 5 # Max depth to recurse
1515

16-
@router.post("/")
16+
@router.post("")
1717
async def scan_repo(payload: ScanRepoPayload):
1818
try:
1919
tree = await scan_repo_tree(

actions/write_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class WriteFilePayload(BaseModel):
1717
author_name: str = "GPT Agent"
1818
author_email: str = "gpt-agent@nomena.dev"
1919

20-
@router.put("/")
20+
@router.put("")
2121
async def write_file(payload: WriteFilePayload):
2222
try:
2323
# Check if file exists (to get SHA for update)

0 commit comments

Comments
 (0)