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
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* text=auto eol=lf
*.bat text eol=crlf
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.vsix binary
18 changes: 18 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2024-2026 Alphin Tom
#
# SPDX-License-Identifier: MIT

# Code owners: review is requested from these people on pull requests that
# touch the matching paths.

* @alpha912

/src/ @alpha912
/scripts/ @alpha912
/.github/ @alpha912
/package.json @alpha912
/bun.lock @alpha912
/LICENSE.md @alpha912
/LICENSES/ @alpha912
/REUSE.toml @alpha912
/SECURITY.md @alpha912
77 changes: 77 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# SPDX-FileCopyrightText: 2024-2026 Alphin Tom
#
# SPDX-License-Identifier: MIT

name: Bug report
description: An export is wrong, incomplete or fails
title: "[Bug]: "
labels: ["bug", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for reporting. A minimal, sanitized example is the most useful thing you can include.
Never paste private code or real credentials. Security issues go through SECURITY.md, not here.
- type: dropdown
id: area
attributes:
label: Area
options:
- Export Wizard
- Export Git Changes
- Copy Current File
- Original Markdown / Micro commands
- File selection and ignore rules
- Secret redaction
- Output format (Markdown, XML, text)
- Micro or skeleton mode
- Token estimate or budget warning
- Installation or activation
- Documentation
validations:
required: true
- type: input
id: version
attributes:
label: Extension version
description: Shown on the extension's page in VS Code.
placeholder: "3.0.0"
validations:
required: true
- type: input
id: environment
attributes:
label: Environment
description: VS Code version (Help → About) and operating system.
placeholder: "VS Code 1.146.0, Windows 11"
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: The command you ran, the options you chose and any relevant settings or ignore files.
placeholder: |
1. Open a folder containing …
2. Run "CodebaseMD: Export Wizard" → Workspace → Full → Markdown → Clipboard
validations:
required: true
- type: textarea
id: example
attributes:
label: Minimal example
description: The smallest file or folder layout that shows the problem, with any secrets replaced by fake values.
render: text
- type: textarea
id: expected
attributes:
label: What you expected
validations:
required: true
- type: textarea
id: actual
attributes:
label: What happened instead
description: Include the text of any notification. Screenshots help.
validations:
required: true
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-FileCopyrightText: 2024-2026 Alphin Tom
#
# SPDX-License-Identifier: MIT

blank_issues_enabled: false
contact_links:
- name: Security vulnerability
url: https://github.com/alpha912/codebase-md/security/advisories/new
about: Do not open an issue. Report privately as described in SECURITY.md.
- name: Questions and ideas
url: https://github.com/alpha912/codebase-md/discussions
about: Ask how to do something or share how you use CodebaseMD.
- name: Troubleshooting guide
url: https://github.com/alpha912/codebase-md/blob/main/docs/troubleshooting.md
about: Common problems and their fixes.
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/docs_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-FileCopyrightText: 2024-2026 Alphin Tom
#
# SPDX-License-Identifier: MIT

name: Documentation issue
description: Something in the README or docs is wrong, unclear or missing
title: "[Docs]: "
labels: ["documentation", "triage"]
body:
- type: input
id: page
attributes:
label: Page
description: File path or link to the page.
placeholder: docs/configuration.md
validations:
required: true
- type: textarea
id: problem
attributes:
label: What is wrong or missing
validations:
required: true
- type: textarea
id: suggestion
attributes:
label: Suggested wording
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# SPDX-FileCopyrightText: 2024-2026 Alphin Tom
#
# SPDX-License-Identifier: MIT

name: Feature request
description: Suggest a new capability or a change in behaviour
title: "[Feature]: "
labels: ["enhancement", "triage"]
body:
- type: textarea
id: problem
attributes:
label: The problem
description: What are you trying to do, and what gets in the way today?
validations:
required: true
- type: textarea
id: proposal
attributes:
label: What you would like
description: Describe the behaviour you want. A sketch of the command, setting or output is welcome.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives you considered
- type: checkboxes
id: constraints
attributes:
label: Fit with the project
description: CodebaseMD runs locally and makes no network requests.
options:
- label: This works without sending code to a service
- label: I am willing to help implement or test it
27 changes: 27 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## What and why

<!-- What does this change, and why? Link the issue: Closes #123 -->

## Areas touched

- [ ] Export pipeline (`exporter`, `fsUtils`, `git`, `secrets`)
- [ ] Output (`formatters`, Micro, skeleton, token estimate)
- [ ] VS Code integration (`extension`, `config`, `package.json` contributions)
- [ ] Documentation
- [ ] Repository (CI, dependencies, licensing)

## How it was tested

<!-- Commands you ran and what you checked by hand, e.g. the exported output. -->

## Checklist

- [ ] Tests added or updated for behaviour changes
- [ ] `bun run check` passes; `bun run test:integration` passes if VS Code integration changed
- [ ] `CHANGELOG.md` updated under `[Unreleased]`
- [ ] Documentation updated for user-visible changes
- [ ] Breaking changes are marked **BREAKING** with migration notes
- [ ] Safety properties are unchanged (workspace containment, no symlink following, redaction before transformation), or the change is explained above
- [ ] New files have SPDX headers or are covered by `REUSE.toml`
- [ ] The title does not start with `release:`
- [ ] I agree my contribution is licensed under the MIT License (see CONTRIBUTING.md)
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
permissions:
contents: read

# A newer push to the same branch or pull request replaces the running check.
# Runs on main are never cancelled, so a release is not interrupted.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
test:
name: Test (${{ matrix.os }})
Expand Down Expand Up @@ -46,9 +52,19 @@ jobs:
path: '*.vsix'
if-no-files-found: error

reuse:
name: REUSE licensing
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- run: pipx run reuse==6.3.0 lint

release:
name: Publish GitHub release
needs: test
needs: [test, reuse]
if: github.event_name == 'push' && startsWith(github.event.head_commit.message, 'release:')
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
30 changes: 23 additions & 7 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
# Only the compiled extension, its runtime dependency, the icon, README,
# CHANGELOG and LICENSE ship in the VSIX.
.github/**
.vscode/**
.vscode-test/**
src/**
out/test/**
**/*.map
scripts/**
docs/**
releases/**
CodebaseMD-Web/**
.vscode-test/**
LICENSES/**
assets/banner.png
assets/logo.png
assets/logo-with-text.png
.editorconfig
.gitattributes
.gitignore
AGENTS.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
REUSE.toml
SECURITY.md
SUPPORT.md
biome.json
bun.lock
tsconfig.json
docs/v3-plan.md
*.vsix
integration-test.log
.github/**
scripts/**
*.vsix
*.sha256
biome.json
bun.lock
Loading
Loading