Skip to content

Define contribution and repository conventions #1

Closed

Description

@nishide-dev

背景

texrun の開発を始めるにあたり、コミット・PR・Issue の書き方と基本的な開発フローを最初に固定する。

コミット履歴や PR 一覧は英語で機械的に検索しやすくしつつ、議論や変更意図は日本語で自然に記述できる形を採用する。

方針

Commit message

Conventional Commits 形式を採用する。

<type>(<scope>): <description>

scope が不要な場合は空の () を付けず、以下の形式にする。

<type>: <description>

例:

feat(cli): add compile command
feat(texlive): add latexmk engine
fix(diagnostics): parse undefined control sequence errors
docs: document local development setup
test(engine): add timeout fixture
chore(ci): add clippy checks
refactor(core): simplify compile result model

主に利用する type:

  • feat: 新機能
  • fix: バグ修正
  • docs: ドキュメントのみ
  • test: テスト追加・修正
  • refactor: 外部仕様を変えないリファクタリング
  • perf: 性能改善
  • chore: CI、依存更新、開発環境など
  • build: ビルドシステムやパッケージ関連

description は英語・命令形寄り・末尾ピリオドなしを基本とする。

PR title

PR タイトルも Conventional Commits と同じ形式の英語にする。

例:

feat(cli): add compile command
fix(engine): terminate timed-out latexmk process

Squash merge を使う場合、そのまま最終コミットメッセージとして利用できることを意図する。

PR body

PR 本文は自然な日本語で記述する。最低限、以下を含める。

  • 概要
  • 変更内容
  • 確認方法
  • 関連 Issue
  • 必要に応じて補足・既知の制約

Issue

Issue タイトルは英語を基本とし、本文は日本語で記述する。
実装 Issue には可能な範囲で「背景」「スコープ」「完了条件」を含める。

作業内容

  • 上記ルールを CONTRIBUTING.md または README の開発者向けセクションに記載する
  • PR template を追加する
  • 必要なら commit/PR title の自動検証方法を検討する
  • squash merge を基本運用にするか明文化する
  • LICENSE を追加する(MIT に決定。Set up CI quality gates and dependency checks #11 の cargo-deny license check の前提になる)
  • Cargo.toml の license フィールドと一致させる
  • branch 運用(main への直接 push 禁止、feature branch → PR)を明文化する

完了条件

  • 新規 contributor がコミット・PR・Issue の命名規則を迷わず判断できる
  • PR 本文を日本語で書く方針が明文化されている
  • Conventional Commits の scope あり/なし双方の例がある
  • リポジトリに MIT の LICENSE がある

関連

Activity

  1. added this to the MVP milestone on Sep 30, 2026
  2. added
    documentation
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions