Skip to content

fix: Reverse order of posts in gitops changelog #1344

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

Merged
merged 1 commit into from
Jun 30, 2025
Merged

Conversation

olegt-codefresh
Copy link
Contributor

Fixes post sorting within year groups in the GitOps changelog. Posts are now correctly sorted by date in descending order within each group.

@codefresh-git-integration
Copy link

@@ -9,11 +9,12 @@ If you missed any of our previous online announcements, you can find the latest

> To subscribe to an RSS / Atom feed for our SaaS release notes, please [click here]({{ site.baseurl }}/changelog/gitops.xml).

{% assign posts_by_year = site.posts-gitops | group_by_exp: "post", "post.date | date: '%Y'" %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you really need to do | reverse twice? here and in line 16

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the first one if for the years group and the second one is for the items inside the group.

@olegt-codefresh olegt-codefresh merged commit 4912635 into master Jun 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants