Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#472 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
git, java

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Java
星标
129
派生
68
平均合并
1 天 16 小时
30 天内合并 PR
11

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/copilot-for-eclipse 的其他 Issue

查看 microsoft/copilot-for-eclipse 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。