Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,21 +245,3 @@ jobs:
name: repomix-output-bun-${{ matrix.os }}-${{ matrix.bun-version }}.txt
path: repomix-output.txt

generate-schema:
name: Update configuration json schema
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # ratchet:actions/checkout@v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # ratchet:actions/setup-node@v4
with:
node-version-file: .tool-versions
cache: npm
- run: npm ci
- run: npm run website-generate-schema
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # ratchet:stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore(schema): auto generate schema'
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
32 changes: 32 additions & 0 deletions .github/workflows/schema-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Update Schema

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: write

jobs:
generate-schema:
name: Update configuration json schema
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # ratchet:actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # ratchet:actions/setup-node@v4
with:
node-version-file: .tool-versions
cache: npm
- run: npm ci
- run: npm run website-generate-schema
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # ratchet:stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore(schema): auto generate schema'
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
150 changes: 150 additions & 0 deletions website/client/src/public/schemas/1.4.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"input": {
"type": "object",
"properties": {
"maxFileSize": {
"type": "number"
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"properties": {
"filePath": {
"type": "string"
},
"style": {
"type": "string",
"enum": [
"xml",
"markdown",
"plain"
]
},
"parsableStyle": {
"type": "boolean"
},
"headerText": {
"type": "string"
},
"instructionFilePath": {
"type": "string"
},
"fileSummary": {
"type": "boolean"
},
"directoryStructure": {
"type": "boolean"
},
"files": {
"type": "boolean"
},
"removeComments": {
"type": "boolean"
},
"removeEmptyLines": {
"type": "boolean"
},
"compress": {
"type": "boolean"
},
"topFilesLength": {
"type": "number"
},
"showLineNumbers": {
"type": "boolean"
},
"truncateBase64": {
"type": "boolean"
},
"copyToClipboard": {
"type": "boolean"
},
"includeEmptyDirectories": {
"type": "boolean"
},
"tokenCountTree": {
"type": [
"boolean",
"number",
"string"
]
},
"git": {
"type": "object",
"properties": {
"sortByChanges": {
"type": "boolean"
},
"sortByChangesMaxCommits": {
"type": "number"
},
"includeDiffs": {
"type": "boolean"
},
"includeLogs": {
"type": "boolean"
},
"includeLogsCount": {
"type": "number"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"include": {
"type": "array",
"items": {
"type": "string"
}
},
"ignore": {
"type": "object",
"properties": {
"useGitignore": {
"type": "boolean"
},
"useDefaultPatterns": {
"type": "boolean"
},
"customPatterns": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"security": {
"type": "object",
"properties": {
"enableSecurityCheck": {
"type": "boolean"
}
},
"additionalProperties": false
},
"tokenCount": {
"type": "object",
"properties": {
"encoding": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"title": "Repomix Configuration",
"description": "Schema for repomix.config.json configuration file"
}
6 changes: 6 additions & 0 deletions website/client/src/public/schemas/latest/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@
},
"includeDiffs": {
"type": "boolean"
},
"includeLogs": {
"type": "boolean"
},
"includeLogsCount": {
"type": "number"
}
},
"additionalProperties": false
Expand Down