ros2-gbp / ros2-gbp-github-org

ROS 2 Git Built Package (GBP) -- GitHub organization that hosts the release repositories for ROS packages. It also maintains a list of release teams, the list of members per release team.
12 stars 67 forks source link

RFC: Add a tool and sigils to support automatically maintaining sort order for sorted sections. #476

Closed nuclearsandwich closed 6 months ago

nuclearsandwich commented 6 months ago

I actually started adding these because I was separately trying to write a script that would insert values in the correct places and decided that it would be easier to write one script to add things wherever and then another to sort the entire section.

These sigils are based on the ones used by https://github.com/google/keep-sorted but I've included a script that supports our use case here so that additional dependency is not required, although I do use the same sigils so in theory the other tool could be used just the same.

I only added the sort sigils on sections that I thought needed them and have not added them to any release teams.

As I was writing this RFC description, I realized that with a bit more skullduggery, it would actually be possible to use my same tool to perform the sorting using existing patterns and negating the need for explicit sigils. Stand by.

nuclearsandwich commented 6 months ago

This is replaced by a sigiless implementation in #477 .