-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DISCUSSION] Implement a Github Action/CI Job which does the line sorting in appfilter.xml automatically #1079
Comments
As mentioned in my reply, we will try to automate this. If you have suggestions as to how we can do this, just share it in here. |
After removing the comment lines temporarily, the task becomes very easy to do with sort from coreutils.
|
So then comments are the only thing preventing this from being the solution? |
If I think correctly, yes. We can add this to the file, after the sorting is done:
and If you tell me that you consider switching to automated searching, I can prepare an example. |
Sure. You can prepare an example |
Okay, it's rather simple. A script with just 4 lines does the job, if all comments and the heading line (
|
Out of curiosity, would it be possible to let the numbers be sorted with numbers? For example Also seeing that you definitely have more knowledge in this than me, you're free to work on the Github Action on this. Not forcing though just seems like you'd do it better |
As I already wrote in #1088, the command needs to be As the commands, needed for this action, are prepared, can anyone help me with setting up the action itself? |
About this discussion
Hey guys, I am tired of doing such simple and time-consuming tasks manually (see @Chefski's comment: #1077 (review)) and I bet you are tired of reminding people to sort their lines.
So let's combine our interests and set up an Action/CI Job to do the sorting automatically, when new lines get added to appfilter.xml.
I did the sorting with VS Code, which is able to sort all lines ascending. But to do that, I needed to select all lines below
<!-- Lawnicons -->
.So let's rework the structure in the file and implement that fcking sorting to be done automatically! As a start, I could imagine a solution based on the
sort appfilter.xml
command.The text was updated successfully, but these errors were encountered: