chore/governance-baseline #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/governance-baseline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bring the repo up to par with ../governance standards. CLI subset only; web/DB-specific items (HOST_IP/HOST_PORT, APP_PORT, migrations, SETUP_DEFAULT_ADMIN) intentionally skipped. Adds: - `LICENSE.md` (renamed from `LICENSE`), `CLAUDE.md`, `.dockerignore`. - `build.rs` injecting `YOUTRACK_CLI_GIT_HASH` and `YOUTRACK_CLI_BUILD_DATE` at compile time. Wired in via `Cargo.toml::build = "build.rs"`. - `oci-build/Dockerfile` (multi-stage `builder` / `export` / `runtime` against `rust-builder-musl`) and `oci-build/get-tags.nu`. BuildKit cache mounts on the cargo registry/git directories. `CARGO_BUILD_JOBS` build arg. - `compose.yml` (one-shot build that copies the binary to `./dist/`) and `compose.dev.yml` (long-lived rust-builder-musl dev container with per-user named volumes for cargo registry/git/target). - `.forgejo/workflows/check.yml` (fmt + clippy + build + tests with Swatinem/rust-cache), `build-oci-image.yml` (registry image with `:buildcache` `mode=max` + Generic Package upload), `create-release.yml` (release/* PR merge -> tag). - `.devcontainer/devcontainer.json` and `config-devcontainer.sh` reusing `ghcr.io/niceguyit/opensuse-dev`. Justfile gains: `install-hooks`, `pre-commit` (mirrors `check.yml` byte-for-byte inside `rust-builder-musl`), `dev` / `dev-detach` / `dev-stop` / `dev-clean` (per-user volume suffix) / `dev-logs` / `shell`, `check` umbrella (`check-fmt` + `check-clippy` + `check-build` + `check-docker`), `typecheck`, `lint`, `build-docker`, `build-docker-export`. `create-release` recipe retained. All Docker resources prefixed `youtrack-cli-...` / `dev-youtrack-cli-...` with `${USER}` suffix on dev volumes. Dev container runs as `HOST_UID:HOST_GID` so files written to the bind-mounted source tree stay owned by the invoking user. Local verification: `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings`, `cargo build --all-targets`, `cargo test --all-targets` all clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: David Randall <David@NiceGuyIT.biz>