WeblateOrg / WeblateOrg/weblate

Addon - Squash Git commits - Template markup not working

Open
#7,339 6 comments 0 reactions 0 assignees View on GitHub
enhancement Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the issue

I see template markup (variables) in commit message instead of strings these variables represent.

[Documentation of addon-weblate-git-squash](https://docs.weblate.org/en/latest/admin/addons.html#addon-weblate-git-squash)) indicates it should work:

> The original commit messages can optionally be overridden with a custom commit message. See [Template markup](https://docs.weblate.org/en/latest/admin/projects.html#markup) for the message options.

### I already tried

- [X] I've read and searched [the documentation](https://docs.weblate.org/).
- [X] I've searched for similar issues in this repository.

### Steps to reproduce the behavior

1. Go to component addons. Add addon "Squash Git commits".
2. Configure it as follows:
- Commit squashing - per file
- Append trailers to squashed commit message - checked
- Commit message - use template markup. Eg. `Translated using Weblate ({{ language_name }} / {{ filename }})`
3. Check commits. You'll see template markup instead of strings it should generate.

### Expected behavior

Template markup should be processed and it should generate strings in place of variables.

### Screenshots

Addon configuration:
![Screenshot from 2022-03-03 09-35-31](https://user-images.githubusercontent.com/6843562/156527612-8cdf59d6-7126-4b13-876d-979ba5a0d24f.png)

Repository maintenance page:
![Screenshot from 2022-03-03 09-35-49](https://user-images.githubusercontent.com/6843562/156527611-4ecdd88d-2c5d-412c-8e33-89f110ae8a83.png)

GitLab MR:
![Screenshot from 2022-03-03 09-36-29](https://user-images.githubusercontent.com/6843562/156527607-f13face0-fbfe-4643-ab13-f3052ccbc5ea.png)

### Exception traceback

_No response_

### How do you run Weblate?

weblate.org service

### Weblate versions

_No response_

### Weblate deploy checks

_No response_

### Additional context

_No response_

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.