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
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to crates.io

on:
push:
tags:
- "v*"

permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable

- name: Verify tag version matches Cargo.toml
run: |
CARGO_VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')
TAG_VERSION="${GITHUB_REF_NAME#v}"
if [ "$CARGO_VERSION" != "$TAG_VERSION" ]; then
echo "Error: Tag version ($TAG_VERSION) does not match Cargo.toml version ($CARGO_VERSION)"
exit 1
fi

- name: Publish to crates.io
run: cargo publish
Comment on lines +28 to +29
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The publish job runs cargo publish without building/testing the tag and without --locked. Since this workflow triggers directly on tag push, a broken tag could be published. Consider adding a cargo test --all (or reusing the existing CI workflow as a required status check) and using cargo publish --locked to prevent dependency resolution drift at publish time.

Suggested change
- name: Publish to crates.io
run: cargo publish
- name: Run tests
run: cargo test --all --locked
- name: Publish to crates.io
run: cargo publish --locked

Copilot uses AI. Check for mistakes.
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "git-internal"
version = "0.6.1"
version = "0.7.0"
edition = "2024"
authors = ["Eli Ma <genedna@gmail.com>"]
description = "High-performance Rust library for Git internal objects, Pack files, and AI-assisted development objects (Intent, Plan, Task, Run, Evidence, Decision) with delta compression, streaming I/O, and smart protocol support."
Comment on lines +3 to 6
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title is "Bump to 0.7.0", but this change set also makes a large AI object-model redesign (snapshot/event split, removes ContextPipeline, adds multiple new object types and docs). To reduce review/merge risk and help downstream consumers, consider updating the PR title/description to reflect the broader scope (or splitting version bump vs schema refactor).

Copilot uses AI. Check for mistakes.
Expand All @@ -11,7 +11,7 @@ readme = "README.md"
homepage = "https://libra.tools"
repository = "https://github.com/web3infra-foundation/libra"
license = "MIT"
exclude = ["tests", ".github"]
exclude = ["tests", ".github", ".claude", ".devcontainer", "examples"]

[badges]
maintenance = { status = "actively-developed" }
Expand Down Expand Up @@ -48,7 +48,7 @@ sha2 = "0.10.9"
crc32fast = "1.4"
ring = "0.17.8"
serde_json = "1.0.149"
zstd-sys = { version = "2.0.16+zstd.1.5.7", features = ["experimental"] }
zstd-sys = { version = "2.0.16", features = ["experimental"] }
sea-orm = { version = "1.1.17", features = ["sqlx-sqlite"] }
flate2 = { version = "1.1.9", features = ["zlib"] }
serde = { version = "1.0.228", features = ["derive"] }
Expand Down
Loading