jenkinsci / jenkinsci/git-plugin

[JENKINS-21896] Configurable merge message

Open
#2,423 3 comments 0 reactions 0 assignees View on GitHub
component:git-plugin enhancement imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

I am using the "automatic merging" functionality as described here: "Using Git, Jenkins and pre-build branch merging" ( https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin#GitPlugin-AdvancedFeatures ). The merging is working well. What I wanted is to have some readable information about which two branches are integratet within a commited merge result. The current comments look like:

"Merge commit '6cb5a448d66ab30aca2257123e7c0396fa9fddac' into HEAD"

I would be very useful if more informative commit/push comments could be written like:

"Merged branch 'release/2.4.7' into branch 'develop'. Merge commit '6cb5a448d66ab30aca2257123e7c0396fa9f8dac' into HEAD"

I have not found any customize functionality for this. And using the tag function for this would be an overhead, since "tons" of tags would be created.

Regards

---
Originally reported by olibolib, imported from: Configurable merge message


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • label(s): git-publisher
  • resolution: Unresolved
  • votes: 10
  • watchers: 11
  • imported: 2025-12-02

Raw content of original issue

I am using the "automatic merging" functionality as described here: "Using Git, Jenkins and pre-build branch merging" ( https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin#GitPlugin-AdvancedFeatures ). The merging is working well. What I wanted is to have some readable information about which two branches are integratet within a commited merge result. The current comments look like:

"Merge commit '6cb5a448d66ab30aca2257123e7c0396fa9fddac' into HEAD"

I would be very useful if more informative commit/push comments could be written like:

"Merged branch 'release/2.4.7' into branch 'develop'. Merge commit '6cb5a448d66ab30aca2257123e7c0396fa9f8dac' into HEAD"

I have not found any customize functionality for this. And using the tag function for this would be an overhead, since "tons" of tags would be created.

Regards

environment

```
Linux Ubuntu 3.2.0-58-generic x86_64

Jenkins ver. 1.546

Git Plugin 2.0

Git server plugin 1.3

Jenkins GIT client plugin 1.6.2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.