Thank you for your interest in contributing to OpenRouter Commit Message! This guide outlines how to set up your local development environment, run tests, and handle releases.
-
Clone the repository:
git clone https://github.com/esaramago/commit-message.git cd commit-message -
Install dependencies:
pnpm install
-
Build commands:
# Compile extension into dist/extension.js pnpm run compile # Watch mode (automatically rebuilds on save) pnpm run watch # Run TypeScript type check pnpm run typecheck # Run test suite pnpm run test
-
Debugging the Extension:
- Open the project folder in VS Code or VSCodium.
- Press
F5(or go to Run and Debug -> Run Extension). - A new Extension Development Host window will open with the extension loaded for testing.
To test local packaging without publishing:
pnpm run packageThis generates a .vsix file in the project root that can be installed manually using code --install-extension <filename>.vsix.
Publishing to the Open VSX Registry is automated with GitHub Actions using Open VSX Trusted Publishing (OIDC authentication without static access tokens).
- Bump the version in
package.jsonand updateCHANGELOG.md. - Commit the changes:
git commit -am "chore(release): v0.1.6" - Create and push a version tag:
git tag v0.1.6 git push origin v0.1.6
- The CI workflow (
.github/workflows/release.yml) will automatically:- Run type checks and tests.
- Package the
.vsixbundle. - Publish to Open VSX via Trusted Publishing (
--trusted-publishing). - Create a GitHub Release with the
.vsixartifact attached.
You can also trigger publication manually from GitHub:
- Go to the repository's Actions tab.
- Select the Release & Publish workflow.
- Click Run workflow on the
mainbranch.
- Language: All code, comments, documentation, and commits must be in English.
- Commit Style: Follow Conventional Commits (e.g.,
feat:,fix:,docs:,refactor:,chore:).