Skip to content

[Feature]: Custom Git commit trailers #2727

@patriksimms

Description

@patriksimms

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I am describing a concrete problem or use case, not just a vague idea.

Area

Not sure

Problem or use case

In the company I work in we want to track AI generated code by commit trailers. This way we can later search in the commits of a project roughly how much code is AI assisted. Therefore we decided to use the git commit trailer AI-Assisted-By: Codex.

Since the t3code UI also has a commit button which is really convinient to use, I would like to be able to add custom commit trailers to the git integration. Currently there is no way to adjust the git commit behavior in t3code.

Proposed solution

In the Source Control -> git settings an optional text field where I can enter my custom git trailers. Alternativly it could be added in the General -> Text Generation Model Section.

Why this matters

Due to the desired tracking, I have to write commit messages myself / invoke a custom skill for this. With this addition, I could use the UI button

Smallest useful scope

Hardcoced git commit trailer that a commit is AI assisted. In our usecase we could adjust the search query in the tracking to also count other git trailers.

Alternatives considered

custom skills work since git is invoked via tool calls instead of the UI

Risks or tradeoffs

An additional config option which is not needed by everyone I guess?

Examples or references

No response

Contribution

  • I would be open to helping implement this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequested improvement or new capability.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions