Skip to content

Commit

Permalink
Merge pull request #10 from mhdzumair/develop
Browse files Browse the repository at this point in the history
Use github image link & update readme
  • Loading branch information
mhdzumair authored Jun 24, 2023
2 parents 728cc1f + f9b3cf7 commit 5ae50ff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

![GitAIOps Logo](artifacts/logo.png)

GitAIOps is a ChatGPT plugin that enables ChatGPT to interact with Git services, such as GitLab and GitHub. It provides a set of API endpoints that allow ChatGPT to execute Git services API requests.
GitAIOps is a ChatGPT plugin that enables ChatGPT to interact with GitLab's CI/CD workflows. It provides a set of API endpoints that allow ChatGPT to execute GitLab API requests.

## Access to Unverified Plugins
## Access to Verified Plugin

The GitAIOps plugins are currently submitted for review in the ChatGPT plugin store and can be used by up to 15 plugin developers for testing. Please note that these are unverified plugins. Here are the links to the deployed plugins:
The GitAIOps plugin is officially available in the ChatGPT plugin store. You can access it directly from the store or use the link to the deployed plugin:

- GitAIOps: [https://gitaiops.onrender.com](https://gitaiops.onrender.com)
- GitAIOps GitHub: [https://gitaiops-github.onrender.com](https://gitaiops-github.onrender.com)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion artifacts/.well-known/ai-plugin-github.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"url": "http://localhost/openapi.json",
"is_user_authenticated": false
},
"logo_url": "http://localhost/artifacts/logo.png",
"logo_url": "https://raw.githubusercontent.com/mhdzumair/GitAIOps/main/artifacts/logo.png",
"contact_email": "[email protected]",
"legal_info_url": "http://localhost"
}
2 changes: 1 addition & 1 deletion artifacts/.well-known/ai-plugin-gitlab.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"url": "http://localhost/openapi.json",
"is_user_authenticated": false
},
"logo_url": "http://localhost/artifacts/logo.png",
"logo_url": "https://raw.githubusercontent.com/mhdzumair/GitAIOps/main/artifacts/logo.png",
"contact_email": "[email protected]",
"legal_info_url": "http://localhost"
}
10 changes: 0 additions & 10 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ async def ai_plugin(request: Request):

plugin_info.update(
{
"logo_url": f"{host_url}artifacts/logo.png",
"legal_info_url": f"{host_url}",
}
)
Expand All @@ -73,12 +72,3 @@ async def get_home():
"""
html_content = Path("artifacts/index.html").read_text(encoding="utf-8")
return html_content


@app.get("/artifacts/logo.png", include_in_schema=False)
async def read_logo():
"""
This endpoint returns the logo image file.
The image is read from the file system and returned as a file response.
"""
return FileResponse("artifacts/logo.png")

0 comments on commit 5ae50ff

Please sign in to comment.