Merge branch 'main' of ssh://code.rhodecode.com:3022/internal/rhodecode-enterprise-ce

This commit is contained in:
Andrii V 2025-09-08 15:29:34 +02:00
commit 171470bd59
6 changed files with 18 additions and 3 deletions

View file

@ -31,11 +31,12 @@ To configure extra fields per repository, use the following steps:
.. image:: ../../images/extra-repo-fields.png
The most important is the `New field key` variable which under the value will
3. The most important is the `New field key` variable which under the value will
be stored. It needs to be unique for each repository. The label and description
will be generated in repository settings where users can actually save some
values inside generated extra fields.
.. image:: ../../images/extra-repo-fields-set-value.png
Example Usage in extensions
---------------------------

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

View file

@ -117,7 +117,7 @@ line-ending = "auto"
[tool.bumpversion]
current_version = "5.6.1"
current_version = "5.7.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"

View file

@ -1 +1 @@
5.6.1
5.7.0

View file

@ -46,6 +46,14 @@ def initialize_ini_config_default_values_if_not_present(
log.warning("Config file %s not found.", ini_path)
return
if not os.access(ini_path, os.W_OK):
log.warning(
"Cannot save value for %s, reason: cannot write to config file '%s' due to lack of permissions.",
option,
ini_path,
)
return
updater = ConfigUpdater()
updater.read(ini_path)

View file

@ -61,6 +61,12 @@
</div>
</div>
<div class="field">
<p class="alert-warning" style="display:inline-block;padding:8px 12px;">
<strong>${_("Note")}:</strong> ${_("You can set values for your custom fields in")} <strong>${_("Repository Settings")}</strong> ${_("(bottom of the page)")}
</p>
</div>
<div class="buttons">
${h.submit('save',_('Add'),class_="btn")}
${h.reset('reset',_('Reset'),class_="btn")}