diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a4602e..d319644 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -116,85 +116,25 @@ jobs: with: path: artifacts - - name: Remove Same Release - uses: omarabid-forks/action-rollback@stable - continue-on-error: true - with: - tag: ${{ steps.vars.outputs.package_version }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Create Release - id: create-release - uses: actions/create-release@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.vars.outputs.package_version }} - release_name: Version ${{ steps.vars.outputs.package_version }} - body: ${{ steps.vars.outputs.package_name }} - ${{ steps.vars.outputs.package_version }} - draft: false - prerelease: false - - - name: Upload Linux x86_64 binary - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: artifacts/ci-linux-x86_64/ci - asset_name: ci-linux-x86_64 - asset_content_type: application/octet-stream - - - name: Upload Linux aarch64 binary - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: artifacts/ci-linux-aarch64/ci - asset_name: ci-linux-aarch64 - asset_content_type: application/octet-stream - - - name: Upload Windows x86_64 binary - uses: actions/upload-release-asset@v1 + - name: Create Release and Upload Assets env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: artifacts/ci-windows-x86_64.exe/ci.exe - asset_name: ci-windows-x86_64.exe - asset_content_type: application/octet-stream - - - name: Upload Windows aarch64 binary - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: artifacts/ci-windows-aarch64.exe/ci.exe - asset_name: ci-windows-aarch64.exe - asset_content_type: application/octet-stream - - - name: Upload macOS x86_64 binary - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: artifacts/ci-macos-x86_64/ci - asset_name: ci-macos-x86_64 - asset_content_type: application/octet-stream - - - name: Upload macOS aarch64 binary - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: artifacts/ci-macos-aarch64/ci - asset_name: ci-macos-aarch64 - asset_content_type: application/octet-stream + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG: ${{ steps.vars.outputs.package_version }} + PACKAGE_NAME: ${{ steps.vars.outputs.package_name }} + run: | + # Delete existing release if exists + gh release delete "$TAG" --yes || true + + # Create release + gh release create "$TAG" \ + --title "Version $TAG" \ + --notes "$PACKAGE_NAME - $TAG" \ + artifacts/ci-linux-x86_64/ci \ + artifacts/ci-linux-aarch64/ci \ + artifacts/ci-windows-x86_64.exe/ci.exe \ + artifacts/ci-windows-aarch64.exe/ci.exe \ + artifacts/ci-macos-x86_64/ci \ + artifacts/ci-macos-aarch64/ci - name: Purge artifacts uses: omarabid-forks/purge-artifacts@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b13789..120e748 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,35 @@ +# Changelog +All notable changes to this project will be documented in this file. + +## [0.0.5] - 2025-03-02 + +### Added +- **LSP Server**: Language Server Protocol implementation for IDE integration + - `textDocument/hover`: Shows owners and tags when hovering over files + - `textDocument/codeLens`: Displays ownership annotations above files + - `textDocument/publishDiagnostics`: Warns about unowned files + - Multi-root workspace support +- **TCP Transport**: LSP server now supports TCP connections (`ci lsp --port `) +- **VS Code Extension**: Companion extension for Visual Studio Code (in `vscode-extension/`) + +### Changed +- Upgraded `utoipa` to 5.4.0 with schema fixes +- LSP feature is now opt-in via `--features lsp` cargo flag + +### Fixed +- Safe serialization of CodeLens arguments +- Output redirected to stderr for LSP compatibility + +## [0.0.4] - 2024-12-XX + +### Added +- `infer-owners` command for intelligent owner inference +- ARM64 runners for release builds (Linux, Windows, macOS) + +### Changed +- Dependency updates and formatting improvements + +## [0.0.3] - Previous Release + +Initial public release with core CODEOWNERS parsing and analysis features. diff --git a/README.md b/README.md index 15e0d37..26f6dc6 100644 --- a/README.md +++ b/README.md @@ -14,19 +14,19 @@ - **Table of Contents** - [Features](#features) - - [CodeOwners](#codeowners-features) + - [CodeOwners Features](#codeowners-features) - [Installation](#installation) - [Pre-built Binaries](#pre-built-binaries) - [Installation Instructions](#installation-instructions) - [From Cargo](#from-cargo) - [From Source](#from-source) + - [From NPM](#from-npm) - [Quick Start](#quick-start) - [Commands](#commands) - - [CodeOwners](#codeowners-1) + - [CodeOwners](#codeowners) - [Parse CODEOWNERS](#parse-codeowners) - [List Files](#list-files) - [List Owners](#list-owners) diff --git a/ci/Cargo.toml b/ci/Cargo.toml index 26f0359..0e37b2e 100644 --- a/ci/Cargo.toml +++ b/ci/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "ci" -version = "0.0.4" +version = "0.0.5" authors = ["Abid Omar "] edition = "2021" -repository = "https://github.com/CodeInputCorp/cli" +repository = "https://github.com/code-input/cli" readme = "../README.md" license = "MIT" keywords = ["cli", "codeowners", "git", "tooling", "binary"] @@ -24,7 +24,7 @@ syslog = ["codeinput/syslog"] lsp = ["codeinput/tower-lsp", "codeinput/tokio", "tokio"] [dependencies] -codeinput = { version = "0.0.4", path = "../codeinput" } +codeinput = { version = "0.0.5", path = "../codeinput" } human-panic = { workspace = true } better-panic = { workspace = true } log = { workspace = true } diff --git a/codeinput/Cargo.toml b/codeinput/Cargo.toml index cdcad1f..ed7f8a8 100644 --- a/codeinput/Cargo.toml +++ b/codeinput/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "codeinput" -version = "0.0.4" +version = "0.0.5" authors = ["Abid Omar "] edition = "2021" -repository = "https://github.com/CodeInputCorp/cli" +repository = "https://github.com/code-input/cli" readme = "../README.md" license = "MIT" keywords = ["codeowners", "git", "parsing", "analysis", "tooling"]