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

[Feature Request] Non-Destructive Commit Message Generation & Dynamic Variable Support in Instructions

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

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/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ệ
git, java

Hướng nghiên cứu

Start by locating the GitHub Copilot commit-message generation entry point in the Eclipse Git Staging view or commit window, then trace how custom commit instructions are processed. Define completion as preserving existing text while appending generated text with a newline, and evaluating the requested date, time, and branch variables before submission.

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

Mô tả

enhancement

Problem Description
When using the GitHub Copilot plugin in the Eclipse Git Staging view or commit window to auto-generate commit messages, the extension currently overwrites any existing text present in the commit message box. If a user has already written a draft, added a ticket number, or included custom notes, they lose their text entirely.

Additionally, custom commit instruction prompts currently lack support for runtime variables (such as the current date, time, or active branch name), limiting the flexibility of automated commit formatting.

Proposed Behavior
Non-Destructive / Append Behavior:

Before replacing the contents of the commit message box, the plugin should check if the field already contains text.

If text is present, instead of wiping it, it should append the auto-generated commit message at the end of the existing text (separated by a newline), preserving the user's manual input.

Dynamic Variable Support in Instructions:

Allow developers to use standard environment or IDE-style variables (e.g., ${current_date}, ${git_branch}) within their custom commit instruction templates.

The plugin should evaluate and inject these variables before sending the request or finalizing the commit text.

Use Case & Motivation
Prevents Accidental Data Loss: Users frequently type manual prefixes or contextual details into the commit box before hitting the AI generation button, only to have their work erased.

Streamlined Workflows: Supporting variables like dates or branch names allows teams to standardize conventional commits with precise temporal or structural context automatically.

Ngôn ngữ chính
Java
Star
128
Fork
66
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
11

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

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 microsoft/copilot-for-eclipse

Tất cả issue của microsoft/copilot-for-eclipse

Issue tương tự

Thêm issue về Java

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.