Repository navigation
docs: add contribution guidelines and MIT license - #15
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
nishide-dev
left a comment
There was a problem hiding this comment.
Verdict: CHANGES_REQUESTED
Issue #1 の作業内容と完了条件はほぼすべて満たしています。Conventional Commits の scope あり・なし両方の例、PR 本文を日本語で書く方針、PR template、squash merge、branch 運用、MIT LICENSE がそろっています。.github/pull_request_template.md の置き場所とファイル名は GitHub がサポートする形式で、engine scope を texlive にそろえた判断も妥当です。#2 / #11 / #14 との大きな矛盾もありません。日本語も読みやすいです。修正が必要なのは下記の should-fix 1 件だけです。
should-fix
1. 「squash 後のコミットメッセージには PR タイトルがそのまま使われる」は、現在のリポジトリ設定では常には成り立たない
CONTRIBUTING.md(Merge 方針・PR title)と PR template のコメントでは、squash merge 時には PR タイトルがそのまま最終コミットメッセージになると書かれています。ところが、現在のリポジトリ設定は squash_merge_commit_title: COMMIT_OR_PR_TITLE(GitHub のデフォルト)です。この設定では、コミットが 1 つだけの PR は、PR タイトルではなくそのコミットのメッセージが squash コミットのタイトルに使われます。ドキュメントの前提と実際の挙動が合っていません。
対応案(どちらか、または両方):
- リポジトリ設定の Pull Requests > "Allow squash merging" > Default commit message を "Default to pull request title"(必要なら "Pull request title and description")に変更する。API では
squash_merge_commit_title=PR_TITLEです。PR 本文の「補足」の branch protection と同じように、別途必要な設定として明記してください。 - あるいは、ドキュメント側の表現を「(上記設定を前提に) PR タイトルが使われる」に改める。
nit
- Breaking change の記述:
BREAKING CHANGE:は仕様上 body ではなく footer です。「body 末尾に」は「footer(本文末尾の trailer)に」とする方が正確です。また仕様では!と footer のどちらか片方があれば breaking change になります。両方を必須にするならプロジェクト独自のルールなので、「本プロジェクトでは両方付ける」と一言添えると誤解がありません。 choreとbuildの境界:choreが「依存更新」、buildが「パッケージ関連(Cargo 設定など)」となっていて、Cargo 依存の更新をどちらにするか迷いそうです(例はchore: update dependencies)。「依存バージョン更新はchore」のように一文あると判断しやすくなります。Dependabot(#11)のコミット prefix 設定を決めるときにも役立ちます。- merge 後の branch 削除: 「merge 後の feature branch は削除します」とありますが、リポジトリ設定の
delete_branch_on_mergeは現在falseです。"Automatically delete head branches" を有効にしておくと運用とそろいます。 - 品質ゲートと #2 / #11 の差: #2 と #11 の品質ゲートには
cargo check --workspace --all-targets --all-featuresも含まれていますが、本 PR では任意扱いです。clippy で実質カバーされるので問題はありませんが、「CI と同じ基準」と書くなら並びをそろえるか、CI 側に合わせて後で更新する旨を添えてもよいです。 Cargo.tomlのlicense: Issue の作業項目「Cargo.tomlのlicenseフィールドと一致させる」は #2 に委ねる、という扱いで問題ありません。#2 のチェックリストにある[workspace.package]の license に"MIT"と明示されていないので、#2 にコメントを残しておくと取りこぼしを防げます。- PR template の
Closes #: 空欄のまま残っても害はありませんが、該当 Issue がない PR では削除するようコメントで促すとよいです(例:<!-- 該当なしなら削除 -->)。
過剰な内容について
branch 名の規約や bug 報告の項目は Issue で明示的に求められたものではありませんが、短く実用的なので残して問題ないと考えます。
Co-Authored-By: Claude Opus 5.5 <[email protected]>
nishide-dev
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
修正 commit 8685f49 を再レビューしました。前回の should-fix は解消済みです。must-fix / should-fix に当たる指摘はもうありません。
前回指摘への対応確認
- should-fix 1(squash merge 時のタイトル): 解消。
gh apiでリポジトリ設定を確認しました(squash_merge_commit_title=PR_TITLE/squash_merge_commit_message=PR_BODY/delete_branch_on_merge=true)。CONTRIBUTING.md と PR template の記述もこの設定に合っています。 - nit 1(Breaking change): 対応済み。
!と footer のどちらか一方でよいという説明は仕様どおりです。 - nit 2(
chore/buildの境界): 対応済み。chore(deps)とbuildの使い分けが明確になりました。 - nit 3(branch 削除): 設定変更で解消しました。
- nit 4(
cargo check): 対応済み。#2 / #11 の品質ゲートと同じ内容になりました。 - nit 5(license): PR #16 の差分で
license = "MIT"と各 crate のlicense.workspace = trueを確認しました。 - nit 6(
Closes #): 対応済み。
残りの nit(任意。merge を妨げません)
- Breaking change の例に見出しがない: コードブロックが 3 つ続いていて、2 つ目と 3 つ目は
!があるかどうかしか違いません。「!のみ」「footer のみ」「併用」のように短いラベルを付けると、違いが一目でわかります。 - PR 本文がそのままコミット本文になる点:
PR_BODYの設定では、PR 本文全体(template の HTML コメントの消し忘れや🤖 Generated with ...の行も含む)がmainのコミット本文に入ります。squash 前に確認するか、template のコメントは消してから出すよう一言添えると、履歴がきれいに保てます。また footer を認識させるには、BREAKING CHANGE:が本文の最後の段落(直前に空行)にある必要があります。「PR 本文の末尾に」という現在の記述で基本的には足りますが、末尾に自動署名の行などがあると footer として認識されない点には注意が必要です。 - 品質ゲート節のリスト: 「上記は #2 / #11 で定義する…」の項目と「CI を source of truth…」以下の項目が、空行で別々のリストに分かれています。1 つのリストにまとめると読みやすくなります(表示上の問題だけです)。
- Dependabot の prefix(#11 向けのメモ): Dependabot を導入するときは、
commit-message.prefix: choreとinclude: scopeを設定してchore(deps): ...にそろえると、本ドキュメントと一致します。
## 概要 host に TeX Live を入れずに開発・integration test を行えるよう、Rust toolchain と軽量な TeX Live を含む Docker ベースの開発環境を追加します。CI(#11)とローカルで同じ TeX 環境を使い、fixture(#10)の揺れを抑えることが目的です。 ## 変更内容 - `docker/dev/Dockerfile` - ベース: `rust:1.98.1-slim-trixie`(Debian 13)。`rust-toolchain.toml`(channel = "1.98.1"、components = rustfmt / clippy)に合わせて `rustfmt` / `clippy` component を事前に追加し、コンテナ内での toolchain 再ダウンロードを防ぐ - TeX Live: `latexmk`, `texlive-latex-base`, `texlive-latex-recommended`(`--no-install-recommends`)。`pdflatex` / `bibtex` が使える(`biber` は含まない) - preview tool: `mupdf-tools`(`mutool`)、`poppler-utils`(`pdftoppm` / `pdfinfo`) - サイズ削減: dpkg の `path-exclude` で `/usr/share/doc`・man・locale・TeX Live の `doc/` を除外し、apt cache / lists を削除 - `compose.yaml`(repo root) - service `dev`、repo を `/workspace` に bind mount - build 成果物: `CARGO_TARGET_DIR=/workspace/target/docker`(bind mount 内。checkout ごとに分離され、`.gitignore` の `/target/` で無視される) - cargo registry / git cache: named volume `texrun_cargo-registry` / `texrun_cargo-git`。`name: texrun` で project 名を固定し、全 checkout で共有 - `docs/development.md`: build / 実行方法、コンテナ内でのローカル品質ゲート(CONTRIBUTING.md と同じ 4 コマンド)、cache 構成と消し方、TeX Live integration test の実行方法は #10 で決める旨、注意事項(root 所有、image tag の共有、TeX Live の version 記録) ### レビュー対応(d2874fa) - **must-fix**: target volume を全 checkout で共有していたため、古い成果物で test が偽 green になる問題を修正。target を bind mount 内の `target/docker/` に移し、checkout ごとに分離した - build 時間(OrbStack, clean な `cargo clippy` + `cargo test`、3 回平均): named volume は約 2.4 秒、bind mount は約 2.6 秒(約 8% 増)。許容範囲と判断した。no-op の `cargo test` はどちらも 0.03 秒 - **should-fix**: `CARGO_TARGET_DIR` が mount point ではなくなったので、`cargo clean` が成功するようになった - **nit** - `ca-certificates` を install list から削除(base image に含まれるため) - `CARGO_TARGET_DIR` は `compose.yaml` だけで定義(Dockerfile の `ENV` を削除) - `CARGO_TERM_COLOR=always` を削除(既定の `auto` に任せる) - docs の Cache 節を、共有するもの / checkout ごとのものに分けて書き直した。`down --volumes` を実行すると全 checkout 共有の registry / git cache が消えることも追記 - `image: texrun-dev:latest` が全 checkout で共有される点を docs に注意書きとして追加 - TeX Live などの package version(texlive-binaries 2024.20240313.70630+ds-6 / texlive-latex-* 2024.20250309-1、Debian 13.7)を docs に記録 - Linux ホストでは `target/docker/` が root 所有になること、integration test の出力先を tempdir にする方針を docs に追記 ### CI(#19)merge 後の追従(26311d1) - `docs/development.md` を CI の構成に合わせて最小限更新した - 現在の CI はこの image を使っておらず、TeX Live integration job で使う想定であることを明記 - CI と同じ条件で確認するときは `--locked` を付けること - `cargo-deny` / `cargo-nextest` は image に含めていないこと ### 再レビュー対応(f64663f) - **should-fix**: Linux の Docker Engine では `target/` 自体が root 所有で作られ、host の cargo build が Permission denied になる件を docs に追記した - 初回は host で `mkdir -p target` しておくこと - root 所有になってしまった場合は `sudo chown -R "$(id -u):$(id -g)" target` で戻すこと - `--user "$(id -u):$(id -g)"` で実行する方法は OrbStack で試した。registry の cache がある状態では `cargo test` が通った。一方、cache が空の volume では `cargo fetch` が root 所有の `/usr/local/cargo/registry` に書き込めず、Permission denied で失敗した。そのため現状は非サポートとし、将来の選択肢として docs に記載した - **nit**: build 時間の比較は、計測環境に依存する参考値であることを明記した ## 確認方法 macOS (Apple Silicon) + OrbStack で、origin/main(#15, #16, #18, #19 merge 後)に rebase した状態で確認しました。PR 上の CI(`ci-success` / `pr-title` を含む全 check)は green です。 ローカル品質ゲート(すべて `docker compose run --rm dev ...` でコンテナ内実行): - [x] `cargo check --workspace --all-targets --all-features` - [x] `cargo fmt --all -- --check` - [x] `cargo clippy --workspace --all-targets --all-features -- -D warnings` - [x] `cargo test --workspace`(`texrun` 1 passed / `texrun-core` 1 passed / doc-tests 0) - [x] `cargo clean`: exit 0 偽 green の再発確認(checkout A / B の 2 つ): 1. B で test が失敗する変更を入れる(T1) 2. A で `cargo test --workspace` → 1 passed、exit 0(T2 > T1) 3. B で `cargo test --workspace` → `Compiling` が走り、FAILED(exit 101)。A の成果物は使われない 4. 成果物はそれぞれ `A/target/docker`、`B/target/docker` に分かれ、compose の volume に関する warning も出ない toolchain: - 使われる toolchain は image に入っている `1.98.1-aarch64-unknown-linux-gnu` だけ(`/workspace/rust-toolchain.toml` による override)。4 ゲートの実行中に rustup の sync / download は発生しない TeX Live / preview tool: ```bash docker compose build dev docker compose run --rm dev latexmk -v # Latexmk 4.86 docker compose run --rm dev mutool -v # mutool 1.25.1 docker compose run --rm dev pdftoppm -v # pdftoppm 25.03.0 ``` - repo 外の一時ディレクトリで、`\cite` + `.bib` を含む最小 `article` 文書を `latexmk -pdf -norc -interaction=nonstopmode -halt-on-error -no-shell-escape` でビルドした。exit 0 で bibtex も実行され、1 ページの PDF が生成された。`pdftoppm -png` / `mutool draw` による PNG 化も成功 - image サイズ: `texrun-dev:latest` 1.67GB(disk usage、content size 431MB)。ほとんどはベースの `rust:1.98.1-slim-trixie`(1.13GB)が占める ## 関連 Issue Closes #14 関連: #2, #5, #8, #10, #11 ## 補足 - 後続(#11): base image の digest 固定と、Dependabot(docker ecosystem)による更新の検討。CI では compose の named volume ではなく、`docker build docker/dev` + `docker run -v`(cargo cache は actions/cache)や buildx の gha cache を使う形になる見込み。方式が決まったら docs に追記する - 後続(#8): default の preview tool が 1 つに決まれば、もう片方を外して image を 70〜100MB 程度削減できる - `docker compose` plugin が使えない環境では `docker-compose` に読み替える(docs に記載) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
## 概要 `v*` の tag を push するだけで、検証 → engine image の公開 → **release notes 付き** の GitHub release の作成(source tar 添付)まで完了するようにする。release notes は前の版の tag から今回の tag までの commit(= squash merge した PR タイトル、Conventional Commits)を git-cliff で分類して生成し、インストール方法・image の tag / digest・`gh attestation verify`・source tar の説明を定型で付ける。既存 release の notes だけを作り直す workflow も追加する(v0.1.0 の notes を埋めるのに使う)。 ## 変更内容 - `cliff.toml`(新規): git-cliff の設定。type で分類(`feat` → Features / `fix` → Bug fixes / `perf` → Performance / `docs` → Documentation / `refactor`・`test`・`build`・`chore` → Other changes)。`chore(deps)` は Dependencies に「N dependency updates: #a, #b」の 1 行にまとめる(PR 番号はタイトル行の末尾の `(#N)` だけから取る。番号の無いものは件数にだけ数える)。`!` / `BREAKING CHANGE:` は Breaking changes にも載せる。Conventional でない commit も Other changes に残す。**すべての行は commit のタイトル(1 行目 = PR タイトル)だけから作り**、PR 本文や footer の文面は載せない。末尾の `(#N)` を PR へのリンクにし、`@name` は mention にならないよう code にし、前の版との compare リンクを付ける。 - `.github/scripts/release-notes-test.sh` / `release-notes-test.expected.md`(新規): 使い捨ての repository に main の squash merge と同じ形の fixture の commit(PR 本文付き、実際の Dependabot 形式の本文付き(単独・group)、PR 番号の無い `chore(deps)`、日本語の `BREAKING CHANGE:` footer + attribution、GitHub の Revert、`@name` を含むタイトル)を作り、notes の「What's changed」を期待値と比べる。PR の `notes` job で毎回実行する。 - `.github/scripts/release-notes.sh`(新規): `release-notes.sh <tag> [<digest>]` で notes の Markdown を出力する。 - 安定版は前の安定版から(間の prerelease を畳み込む: `--ignore-tags '^v.*-'`)、prerelease は直前の tag から、最初の版は全履歴。git-cliff の `--context` から対象 tag の release だけを選んで `--from-context` で描画するので、HEAD が tag より先(main)でも同じ notes になる。 - tag がまだ無い場合は「最後の tag 〜 HEAD」をその版としてプレビューする。digest を省略すると placeholder。 - tag が HEAD の祖先でない、semver でない、digest の形式が違う、対象の commit が無い、などはエラー。 - `.github/workflows/engine-image.yml` - `publish` が `digest` を output する。 - `release` が checkout(`fetch-depth: 0`)→ git-cliff(`taiki-e/install-action` を SHA pin、`[email protected]`。install-action が checksum を検証)→ notes 生成(job summary にも出す)→ release の作成(`--notes-file`。版に `-` があれば prerelease にする既存の扱いを維持)。 - release が既にある場合(手で作った / 再実行)は、notes を生成したもので **上書き** してから asset を upload する。 - `.github/workflows/release-notes.yml`(新規): notes の生成だけを行う workflow。image の公開・release の作成はしない。 - `pull_request`(`cliff.toml`・script・この workflow の変更時): fixture の test の後、PR の head commit(merge ref ではなく。`Merge … into …` の行が入らない)で、最後の tag(現状 v0.1.0、全履歴)の notes と、次の版(patch + 1)としての「最後の tag 以降」の notes を job summary と artifact `release-notes` に出す。digest は GHCR から引く(未公開の版は placeholder)。 - `workflow_dispatch`(`tag`、`update`): `update=false`(既定)は dry run。`update=true` は `gh release edit --notes-file` で既存 release の notes を置き換える(main か tag 上の実行のみ。image が GHCR に無い版は失敗)。 - 権限: 生成する `notes` job は `contents: read`。書き込む `update` job だけが `contents: write` で、repository の code は実行しない(artifact を受け取って `gh release edit` するだけ)。 - docs - `docs/development.md`: release 手順を「tag を push するだけ」に更新し、「release notes」節(分類の規則、notes の文面は PR タイトルで決まること、ローカルでの生成方法、作り直し方)を追加。 - `CONTRIBUTING.md`: PR タイトルが release notes の 1 行になること、type / description の書き方の注意、notes の PR check を追記。 - `docs/security.md`(権限の記述)、`docs/engine-image.md`(digest は release notes に載る)を追随。 ## 設計判断 - **git-cliff を採用**(GitHub の自動生成 + `.github/release.yml` ではなく): この repo は PR にラベルを付けない運用で、GitHub の自動生成はラベルでしか分類できない。git-cliff は commit の type で分類でき、PR タイトル = commit タイトルの運用にそのまま合う。API を使わず(`--offline`)git の履歴だけで決まるので、PR 上やローカルでも同じ結果を再現できる。 - **既存 release の notes は上書き**: notes は git の履歴と公開済みの digest から決定的に作られるので、再実行で上書きしても結果は同じ。手で先に release を作った場合も、生成した notes に揃える(docs に明記。公開後の手修正は、作り直すと消える)。 - **CHANGELOG.md は置かない**: tag ごとに CHANGELOG 更新の commit / PR が必要になり、運用が増えるため。GitHub release を changelog とし、必要なら同じ `cliff.toml` から `git cliff` でいつでも全履歴を出せる。 - **notes の作り直しは別 workflow**: engine-image.yml の `workflow_dispatch` は image の公開と結び付いているので、notes だけの経路を分けた。image は再公開せず、digest は GHCR にある既存の版から引く。 - **notes の生成は image の公開後**: digest が要るため `release` job で生成する。設定の誤りは PR 上の `Release notes / notes` で先に検出する。万一 `release` で失敗しても image は公開済みで、`gh run rerun --failed` でやり直せる(既存の手順どおり)。 - **git-cliff の版**: `2.14.2` を両 workflow で固定(install-action の manifest の sha256 で検証)。install-action 自体は SHA pin で、Dependabot の対象。 ## 確認方法 - [x] `actionlint`(全 workflow)、`shellcheck .github/scripts/release-notes.sh` - [x] ローカルで git-cliff 2.14.2(公式 release の tar を sha512 で確認)を使って生成 - `release-notes.sh v0.1.0 sha256:b611…` → 下記(v0.1.0 までの全履歴、32 commit) - `release-notes.sh v0.1.1` → v0.1.0 以降の差分(この PR の commit のみ)のプレビュー - 使い捨ての clone で `v0.2.0-rc.1` / `v0.2.0-rc.2` / `v0.2.0` を打って確認: rc.2 は rc.1 からの差分、v0.2.0 は v0.1.0 からの全部(rc の分を畳み込む)。tag が HEAD の祖先でない場合・semver でない tag・不正な digest はエラーになる - `release-notes-test.sh`: 期待値どおり(下記)。修正前の `cliff.toml` に戻して実行すると、Dependabot の行が `3 dependency updates (Dependabot):,,` に、Breaking changes が日本語の footer + `🤖 Generated with …` に、Revert の行が本文付きに、`@octocat` が mention になり、test が失敗することを確認した - レビュー対応の後も v0.1.0 の notes は変わらない(前回の出力と diff なし) - [x] `CONTRIBUTING.md` / `docs/development.md`: タイトルだけが載ること、`@name` を書かないこと、`jq` が要ること、`update` は通常 `--ref main` で実行すること(v0.1.0 の tag の上には workflow が無い)、fixture の test を追記 - [x] PR 上の `Release notes / notes` が、v0.1.0 と v0.1.1(プレビュー)の notes を job summary と artifact に出す(GHCR から v0.1.0 の digest を引く) - `workflow_dispatch` の dry run は、新規 workflow が default branch に入るまで dispatch できないため、merge 後に `gh workflow run release-notes.yml --ref main -f tag=v0.1.0` で確認する(PR 上の `pull_request` の実行が同じ生成を行う) - tag の push・release の作成 / 編集・publish を有効にした実行はしていない - Rust のコードは変更していない(cargo の品質ゲートは CI で確認) ### 生成例: v0.1.0(digest は GHCR の実際の値) <details> <summary>v0.1.0 の notes(全文)</summary> ````markdown ## What's changed ### Features - **core**: Define compile domain model and engine interface ([#20](#20)) - **workspace**: Add isolated compile workspaces ([#21](#21)) - **diagnostics**: Parse LaTeX logs into structured diagnostics ([#23](#23)) - **texlive**: Add latexmk engine ([#30](#30)) - **preview**: Render PDF pages to PNG previews ([#31](#31)) - **cli**: Add compile command ([#34](#34)) - **workspace**: Exclude nested output directories by path ([#38](#38)) - **diagnostics**: Locate missing packages and fold fatal errors ([#40](#40)) - **diagnostics**: Report BibTeX failures ([#42](#42)) - **process**: Apply resource limits before exec through a gate ([#44](#44)) - **process**: Limit CPU, memory and process count ([#45](#45)) - **sandbox**: Add a container backend for the TeX engine ([#50](#50)) - **sandbox**: Render previews inside the container ([#52](#52)) - **sandbox**: Reclaim containers left by killed runs and report the process limit ([#53](#53)) - **sandbox**: Reclaim leftovers from a previous boot ([#58](#58)) ### Bug fixes - **workspace**: Refine exclusion and collection edge cases ([#29](#29)) - **texlive**: Restore the build after #39 and #40 ([#43](#43)) - **sandbox**: Accept engine images without labels ([#55](#55)) - **sandbox**: Support rootless Podman and refuse rootless Docker ([#57](#57)) - **sandbox**: Detect OOM kills reliably on Docker ([#61](#61)) ### Documentation - Add contribution guidelines and MIT license ([#15](#15)) - Add initial README ([#18](#18)) - **security**: Define the MVP security model and execution limits ([#22](#22)) - Update README to reflect the completed MVP ([#37](#37)) - Rewrite the README ([#59](#59)) ### Other changes - Initialize repository - Bootstrap Rust workspace and toolchain ([#16](#16)) - **ci**: Add quality gates and dependency checks ([#19](#19)) - **docker**: Add TeX Live development environment ([#17](#17)) - Add TeX Live integration fixtures and CI job ([#33](#33)) - **process**: Extract shared subprocess execution ([#39](#39)) - **ci**: Publish the engine image to GHCR ([#51](#51)) ## Install ```bash cargo install --locked --git https://github.com/nishide-dev/texrun --tag v0.1.0 texrun ``` See the [README](https://github.com/nishide-dev/texrun/blob/v0.1.0/README.md#installation) for the requirements and the tools each backend needs. ## Engine image The container backend (`--backend container`) runs TeX in the engine image of this version, `ghcr.io/nishide-dev/texrun-engine:0.1.0` (linux/amd64, linux/arm64). texrun never pulls it; pull it once: ```bash docker pull ghcr.io/nishide-dev/texrun-engine:0.1.0 ``` Published versions are never overwritten. To use exactly this image, pin its digest: ```bash docker pull ghcr.io/nishide-dev/texrun-engine@sha256:b611748f16d50c00982da2e52b51939d50167bebbc22b35ab8741d1c39e00d1b texrun compile --backend container --container-image ghcr.io/nishide-dev/texrun-engine@sha256:b611748f16d50c00982da2e52b51939d50167bebbc22b35ab8741d1c39e00d1b main.tex ``` The image has an SBOM, SLSA provenance and a signed GitHub artifact attestation: ```bash gh attestation verify oci://ghcr.io/nishide-dev/texrun-engine:0.1.0 -R nishide-dev/texrun ``` ## Source of the engine image `texrun-engine-0.1.0-sources.tar` (below) has the Debian source packages (`.dsc`, `.orig.tar.*`, `.debian.tar.*`) of every package in the image, for both platforms, at exactly the installed versions (`packages.txt` and `SHA256SUMS` inside): the corresponding source of its GPL / AGPL programs. See [docs/engine-image.md](https://github.com/nishide-dev/texrun/blob/v0.1.0/docs/engine-image.md#licenses). ```` </details> ### 生成例: v0.1.0 以降の main の差分(次の版のプレビュー) ````markdown ## What's changed ### Bug fixes - **ci**: Build release notes lines from commit titles only ### Other changes - **ci**: Generate release notes from conventional commits - **ci**: Write release notes on tag push and add a notes-only workflow **Full diff**: [v0.1.0...v0.1.1](v0.1.0...v0.1.1) ```` (以下の Install / Engine image / Source は v0.1.0 と同じ形で、digest は placeholder。squash merge 後は 1 commit になる) ### 生成例: fixture(`release-notes-test.expected.md`) ````markdown ## What's changed ### Breaking changes - **cli**: Rename --json flag to --format json ([#4](#4)) ### Features - **cli**: Rename --json flag to --format json ([#4](#4)) ### Bug fixes - **diagnostics**: Report the error `@octocat` found ([#7](#7)) ### Other changes - Revert "fix(core): handle empty logs ([#5](#5))" ([#6](#6)) ### Dependencies - 3 dependency updates: [#2](#2), [#3](#3) **Full diff**: [v0.1.0...v0.2.0](v0.1.0...v0.2.0) ```` ## 補足 - merge 後、v0.1.0 の notes を埋めるには: `gh workflow run release-notes.yml --ref main -f tag=v0.1.0`(dry run、summary で確認)の後に `gh workflow run release-notes.yml --ref main -f tag=v0.1.0 -f update=true`。 - notes の文面は PR タイトルで決まる。merge 後に誤りに気付いた場合は release を手で編集できるが、作り直すと消える。 - 推奨(任意): `release-notes.yml` の `update` job にも、engine-image.yml と同様に `environment` を付けることを検討できる(docs/security.md の「release の入口」)。 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
概要
texrun の開発開始にあたり、コミット・PR・Issue の書き方と基本的な開発フローを明文化し、MIT ライセンスを追加します。
変更内容
CONTRIBUTING.mdを追加(日本語)cli/core/texlive/workspace/diagnostics/preview/ci/dockermainへの直接 push 禁止、feature branch → PR の branch 運用cargo check/cargo fmt/cargo clippy/cargo test。Bootstrap the Rust workspace and development toolchain #2 / Set up CI quality gates and dependency checks #11 と同一)LICENSEを追加(MIT, Copyright (c) 2026 nishide-dev).github/pull_request_template.mdを追加(概要 / 変更内容 / 確認方法 / 関連 Issue / 補足)確認方法
関連 Issue
Closes #1
補足
Cargo.tomlのlicense = "MIT"との一致は、Rust workspace bootstrap(Bootstrap the Rust workspace and development toolchain #2)側で設定される想定です。enginescope は、scope 候補との整合のためtexliveに置き換えて記載しています。squash_merge_commit_title=PR_TITLE/squash_merge_commit_message=PR_BODY/delete_branch_on_merge=trueに変更済みです。CONTRIBUTING.md はこの設定を前提に記述しています(squash コミットのタイトルは PR タイトル、本文は PR 本文になり、merge 後の branch は自動削除されます)。mainの branch protection(直接 push 禁止)は GitHub のリポジトリ設定で別途有効化が必要です。!とBREAKING CHANGE:footer はどちらか一方でよい)、chore(deps)とbuildの使い分け、品質ゲートへのcargo checkの追加(Bootstrap the Rust workspace and development toolchain #2 / Set up CI quality gates and dependency checks #11 と同一)、PR template のCloses #に関する注記を反映しました。🤖 Generated with Claude Code