Skip to content

Commit

Permalink
Split release notes for anote tool (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhirsz authored Aug 16, 2023
1 parent 8da58c0 commit 5e90b16
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 50 deletions.
50 changes: 0 additions & 50 deletions docs/releasenotes/4.4.1.rst

This file was deleted.

7 changes: 7 additions & 0 deletions docs/releasenotes/unreleased/fixes.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Robot Framework 6.1 fixes (#550)
--------------------------------

- ``Translate`` transformer should now properly handle creating Comments section (if needed),
- Missing settings translations should now be ignored by ``Translate`` transformer,
- Files with invalid sections (for example unrecognized translated section names) should be ignored by
``MergeAndOrderSections``
14 changes: 14 additions & 0 deletions docs/releasenotes/unreleased/fixes.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
``NormalizeSeparators`` with ``flatten_lines=True`` not handling Inline IFs (#548)
-----------------------------------------------------------------------------------

Robotidy should now correctly handles Inline IFs in ``NormalizeSeparators`` transformer with ``flatten_lines=True``.
Previously, spacing before `ELSE` and `ELSE IF` branches was set to 0::

IF ${value}>0 Do Thing ELSE Do Other Thing

it was transformed to::

IF ${value}>0 Do ThingELSE Do Other Thing

Additionally, number of spaces before `ELSE` and `ELSE IF` in Inline IFs should now be calculated correctly
(based on the separator length and not indentation).
9 changes: 9 additions & 0 deletions docs/releasenotes/unreleased/fixes.3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Invalid variable case with extended syntax in RenameVariables (#551)
--------------------------------------------------------------------

Robotidy should now be able to recognize variables using extended variable syntax and set variable case accordingly::

*** Test Cases ***
Simple math operations
${i} Set Variable ${0}
Log ${i+1} # i+1 instead of previous I+1
1 change: 1 addition & 0 deletions docs/releasenotes/unreleased/summary.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes related to Robot Framework 6.1 changes. Also fixed ``NormalizeSeparators`` not handling Inline Ifs when ``flatten_lines`` is set to True.
42 changes: 42 additions & 0 deletions docs/releasenotes/unreleased/template.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
:orphan:

==============
Robotidy {{ version }}
==============

{{ summary }}

You can install the latest available version by running

::

pip install --upgrade robotframework-tidy

or to install exactly this version

::

pip install robotframework-tidy=={{ version }}

.. contents::
:depth: 2
:local:

{% if transformers|length > 0 %}
Transformers changes
====================

{% for note in transformers %}{{ note }}{% endfor %}
{% endif -%}

{% if fixes|length > 0 %}
Fixes
=====
{% for note in fixes %}{{ note }}{% endfor %}
{% endif -%}

{% if other|length > 0 %}
Other features
==============
{% for note in other %}{{ note }}{% endfor %}
{% endif -%}

0 comments on commit 5e90b16

Please sign in to comment.