First commit to the code repository
This commit is contained in:
1 parent
692cdee407
commit
0c0dd1cb56
323 files changed
+45712
No files matched your search
@@ -0,0 +1,62 @@
|
||||
name: "Bug Report"
|
||||
description: Report a bug to help improve the project.
|
||||
title: "bug: "
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thank you for taking the time to report this bug!
|
||||
|
||||
_The more information you share, the faster we can identify and fix the bug._
|
||||
|
||||
Prior to opening the issue, please make sure that you:
|
||||
|
||||
- Use English to communicate.
|
||||
- Search the [open issues](https://github.com/xpack-ai/XPack-MCP-Market/issues) and [discussion forum](https://github.com/xpack-ai/XPack-MCP-Market/discussions) to avoid duplicating the issue.
|
||||
|
||||
- type: textarea
|
||||
id: current-behavior
|
||||
attributes:
|
||||
label: Current Behavior
|
||||
description: Describe the issue you are facing.
|
||||
placeholder: |
|
||||
What is the issue with the current behavior?
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected-behavior
|
||||
attributes:
|
||||
label: Expected Behavior
|
||||
description: Describe what you expected to happen.
|
||||
placeholder: |
|
||||
What did you expect to happen instead?
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: error
|
||||
attributes:
|
||||
label: Error Logs
|
||||
description: Paste the error logs if any.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: steps
|
||||
attributes:
|
||||
label: Steps to Reproduce
|
||||
description: Share the steps you took so that we can reproduce the issue. Reports without proper steps details will likely be closed.
|
||||
placeholder: |
|
||||
1. Run XPack via the Docker image.
|
||||
2. Try configuring ...
|
||||
3. ...
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: environment
|
||||
attributes:
|
||||
label: Environment
|
||||
description: Share your environment details. Reports without proper environment details will likely be closed.
|
||||
value: |
|
||||
- XPack version:
|
||||
- Operating system (run `uname -a`):
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,5 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: XPack Discussion Forum
|
||||
url: https://github.com/xpack-ai/XPack-MCP-Marketdiscussions
|
||||
about: Please ask and answer questions here.
|
||||
@@ -0,0 +1,33 @@
|
||||
name: "Documentation Issue"
|
||||
description: Issues related to documentation.
|
||||
title: "docs: "
|
||||
labels: [doc]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
_The more information you share, the faster we can help you._
|
||||
|
||||
Prior to opening the issue, please make sure that you:
|
||||
|
||||
- Use English to communicate.
|
||||
- Search the [open issues](https://github.com/xpack-ai/XPack-MCP-Marketissues) and [discussion forum](https://github.com/xpack-ai/XPack-MCP-Marketdiscussions) to avoid duplicating the issue.
|
||||
|
||||
- type: textarea
|
||||
id: current-state
|
||||
attributes:
|
||||
label: Current State
|
||||
description: Describe the current state of the documentation.
|
||||
placeholder: |
|
||||
The documentation for the API in this page (url) is missing ...
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: desired-state
|
||||
attributes:
|
||||
label: Desired State
|
||||
description: Describe the desired state the documentation should be in.
|
||||
placeholder: |
|
||||
There should be line mentioning how the API behaves when ...
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,23 @@
|
||||
name: "Feature Request"
|
||||
description: Suggest an enhancement to XPack.
|
||||
title: "feat: As a user, I want to ..., so that ..."
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
_The more information you share, the faster we can help you._
|
||||
|
||||
Prior to opening the issue, please make sure that you:
|
||||
|
||||
- Use English to communicate.
|
||||
- Search the [open issues](https://github.com/xpack-ai/XPack-MCP-Marketissues) and [discussion forum](https://github.com/xpack-ai/XPack-MCP-Marketdiscussions) to avoid duplicating the issue.
|
||||
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: Describe the feature you would like to see.
|
||||
placeholder: |
|
||||
As a user, I want to ..., so that...
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,31 @@
|
||||
name: "Request Help"
|
||||
description: Stuck? Ask for help!
|
||||
title: "help request: "
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
_The more information you share, the faster we can help you._
|
||||
|
||||
Prior to opening the issue, please make sure that you:
|
||||
|
||||
- Use English to communicate.
|
||||
- Search the [open issues](https://github.com/xpack-ai/XPack-MCP-Marketissues) and [discussion forum](https://github.com/xpack-ai/XPack-MCP-Marketdiscussions) to avoid duplicating the issue.
|
||||
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: Describe the issue you are facing and what you need help with.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: environment
|
||||
attributes:
|
||||
label: Environment
|
||||
description: Share your environment details. Reports without proper environment details will likely be closed.
|
||||
value: |
|
||||
- XPack version:
|
||||
- Operating system (run `uname -a`):
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,36 @@
|
||||
# XPack 开源版本 - Copilot 编程指导
|
||||
|
||||
## 项目架构
|
||||
|
||||
### 服务依赖
|
||||
- `admin_service` 和 `api_service` 相互独立,都依赖 `common`
|
||||
- 遵循分层架构:Controller → Service → Repository
|
||||
|
||||
### 目录结构
|
||||
```
|
||||
services/
|
||||
├── admin_service/ # 管理端服务
|
||||
├── api_service/ # API服务
|
||||
└── common/ # 公共模块
|
||||
```
|
||||
|
||||
## 编码规范
|
||||
|
||||
### 代码风格
|
||||
- 遵循 PEP 8,使用类型注解和 docstring
|
||||
- 命名:函数/变量用 `snake_case`,类用 `PascalCase`
|
||||
- 导入:优先使用 `services/common`,避免跨服务导入
|
||||
|
||||
### 日志要求
|
||||
- **必须使用英文**,使用 `services/common/logging_config.py`
|
||||
- 格式:`logger.info("Action completed: {context}")`
|
||||
- 避免敏感信息,包含必要上下文
|
||||
|
||||
### 错误处理
|
||||
- 使用 `services/common/error_msg.py` 定义的错误消息
|
||||
- 统一异常处理和日志记录
|
||||
|
||||
## 开发建议
|
||||
- 有适当的日志记录(英文格式,统一格式)
|
||||
- 添加方法级别英文注释,需要简洁
|
||||
- 添加的注释一律使用英文
|
||||
@@ -0,0 +1,46 @@
|
||||
name: release
|
||||
#触发机制,当创建tag时
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
name: release
|
||||
steps:
|
||||
- name: SetOutput
|
||||
id: vars
|
||||
run: echo "tag=${GITHUB_REF#refs/*/v}" >> $GITHUB_OUTPUT
|
||||
- name: Checkout #Checkout代码
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v3.0.0
|
||||
with:
|
||||
node-version: '22.16'
|
||||
- name: Pnpm install and build
|
||||
run: |
|
||||
npm install -g pnpm
|
||||
./scripts/frontend_build.sh
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login Docker #登录docker
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
- name: Setup qshell
|
||||
uses: foxundermoon/setup-qshell@v5
|
||||
with:
|
||||
version: '2.9.0'
|
||||
- name: build
|
||||
run: |
|
||||
cd scripts && ./docker_build.sh ${{ secrets.DOCKER_USERNAME }}
|
||||
- name: publish
|
||||
env:
|
||||
AccessKey: ${{ secrets.AK }}
|
||||
SecretKey: ${{ secrets.SK }}
|
||||
QINIU_BUCKET: ${{ secrets.QINIU_BUCKET }}
|
||||
QINIU_NAME: ${{ secrets.QINIU_NAME }}
|
||||
run: cd scripts && ./docker_publish.sh ${{ secrets.DOCKER_USERNAME }}
|
||||
|
||||
Reference in new issue
Block a user