Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Repository-Specific Configuration (.git-commit-summary.yaml / project config)

Đang mở
#184 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start by reading the existing configuration loading code and tests under internal/config to understand global/XDG and local .env behavior. Trace how the current working directory and Git worktree are identified, then define the repository-config format and precedence from the issue. Done means repository-specific settings merge correctly and internal/config tests cover discovery, merging, and precedence.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Problem Statement

Currently, git-commit-summary loads configuration exclusively from global/XDG locations (~/.config/git-commit-summary/config.env) and local .env files in the working directory root. It does not support repository-specific configuration files (e.g., .git-commit-summary.yaml or project-level .env/config files) that can be checked into version control.

Proposed Feature: Repository-Specific Configuration

Allow individual Git repositories to define their own commit standards, prompts, LLM model preferences, and exclusion rules directly inside the repository.


Detailed Outline Plan
  1. Config Discovery & Precedence:

    • Extend internal/config to search for a repository-specific configuration file (e.g., .git-commit-summary.yaml or .git-commit-summary.env) in the current working directory or repository root (walking up to the git worktree root).
    • Establish clear configuration precedence:
      1. CLI flags / environment variables (highest priority)
      2. Repository-specific config (.git-commit-summary.yaml / .env in repo root)
      3. User local .env file
      4. XDG global configuration (~/.config/git-commit-summary/config.env) (lowest priority)
  2. Schema & Fields:

    • Support project-level settings such as:
      • Preferred LLM provider and model (LLM_PROVIDER, GEMINI_MODEL, etc.)
      • Custom system prompt or prompt template path
      • Additional project-specific file exclusions or overrides
  3. Testing & Validation:

    • Add unit tests in internal/config verifying correct configuration merging and precedence order when repository configs are present.
Ngôn ngữ chính
Go
Star
0
Fork
0
Merge trung bình
18 giờ 49 phút
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rm-hull/git-commit-summary

Tất cả issue của rm-hull/git-commit-summary

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.