gitea
gitea copied to clipboard
Squash-Merging through API mangles commit body
- Gitea version (or commit ref): 1.13.0
- Git version: 2.20.1
- Operating system: debian
Description
When using the API to merge a pull request, we have the option to specify a commit body when performing a squash merge. Gitea appends its default content for the commit message body ("co-authored by", etc.) to the string specified as MergeMessageField.
I think using this default is fine if this field is not provided at all, but I would expect the commit message to just contain the string I provided to the API, even if it is an empty string.
Alternatively, the the API could provide a flag to disable this behaviour explicitly.
@soulmerge the co-authored by ... is always added doesnt mather if UI or API, if you commit for somebody else
I am aware of that. But I can delete that bit when using the UI. I can't delete it when merging through the API.
There is a config option: ADD_CO_COMMITTER_TRAILERS
We close issues that need feedback from the author if there were no new comments for a month. :tea: