Skip to content

Commit

Permalink
Fixed ordering of rows for all chapters. (#39)
Browse files Browse the repository at this point in the history
Fixed ordering of chapters. They are ordered from the oldest one (the lowest issue or pr number).
  • Loading branch information
miroslavpojer authored Feb 1, 2024
1 parent 6fea6a9 commit cd4f7f2
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 142 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ We defined chapters for our GH actions this way:
{"title": "Bugfixes 🛠", "label": "bug"}
]'
```
Then in chapters `New Features 🎉` and `Bugfixes 🛠` will be duplicated lines for this issue.
Then in chapters `New Features 🎉` and `Bugfixes 🛠` will be duplicated lines for this issue. When mentioned second+ times then **[Duplicate]** prefix will be visible.
In the `New Features 🎉` chapter will be mentioned this issue once only.
#### What will happen when the issue contains multiple "Release Notes" comments?
Expand Down
26 changes: 13 additions & 13 deletions __tests__/data/rls_notes_fully_populated_custom_skip_label.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
### Breaking Changes 💥
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
- note about change in Issue 7
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8


### New Features 🎉
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6


### Bugfixes 🛠
- **<span style="color: red;">[Duplicate]<span>** #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- _**[Duplicate]**_ #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)


### Closed Issues without Pull Request ⚠️
- #10 _Issue title 10 - skip label_ implemented by @janeDoe
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #10 _Issue title 10 - skip label_ implemented by @janeDoe


### Closed Issues without User Defined Labels ⚠️
- #10 _Issue title 10 - skip label_ implemented by @janeDoe
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
- #9 _Issue title 9 - no user defined label_ implemented by @janeDoe in [#9](link-to-pr-9)
- note about change in Issue 9
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
- #10 _Issue title 10 - skip label_ implemented by @janeDoe


### Closed Issues without Release Notes ⚠️
- #10 _Issue title 10 - skip label_ implemented by @janeDoe
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
- #10 _Issue title 10 - skip label_ implemented by @janeDoe


### Merged PRs without Linked Issue and Custom Labels ⚠️
Expand Down
26 changes: 13 additions & 13 deletions __tests__/data/rls_notes_fully_populated_first_release.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
### Breaking Changes 💥
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
- note about change in Issue 7
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8


### New Features 🎉
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #1001 _Pull Request 1_ implemented by @janeDoe
- This is second PR comment ad RLS note
- This is third PR comment ad RLS note


### Bugfixes 🛠
- **<span style="color: red;">[Duplicate]<span>** #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- _**[Duplicate]**_ #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)
- **<span style="color: red;">[Duplicate]<span>** #1001 _Pull Request 1_ implemented by @janeDoe
- _**[Duplicate]**_ #1001 _Pull Request 1_ implemented by @janeDoe
- This is second PR comment ad RLS note
- This is third PR comment ad RLS note

Expand All @@ -37,9 +37,9 @@


### Closed Issues without User Defined Labels ⚠️
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
- #9 _Issue title 9 - no user defined label_ implemented by @janeDoe in [#9](link-to-pr-9)
- note about change in Issue 9
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)


### Closed Issues without Release Notes ⚠️
Expand Down
22 changes: 11 additions & 11 deletions __tests__/data/rls_notes_fully_populated_hide_warning_chapters.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
### Breaking Changes 💥
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
- note about change in Issue 7
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8


### New Features 🎉
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6


### Bugfixes 🛠
- **<span style="color: red;">[Duplicate]<span>** #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- _**[Duplicate]**_ #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)

Expand Down
26 changes: 13 additions & 13 deletions __tests__/data/rls_notes_fully_populated_in_default.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
### Breaking Changes 💥
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
- note about change in Issue 7
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8


### New Features 🎉
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #1001 _Pull Request 1_ implemented by @janeDoe
- This is second PR comment ad RLS note
- This is third PR comment ad RLS note


### Bugfixes 🛠
- **<span style="color: red;">[Duplicate]<span>** #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- _**[Duplicate]**_ #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)
- **<span style="color: red;">[Duplicate]<span>** #1001 _Pull Request 1_ implemented by @janeDoe
- _**[Duplicate]**_ #1001 _Pull Request 1_ implemented by @janeDoe
- This is second PR comment ad RLS note
- This is third PR comment ad RLS note

Expand All @@ -37,9 +37,9 @@


### Closed Issues without User Defined Labels ⚠️
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
- #9 _Issue title 9 - no user defined label_ implemented by @janeDoe in [#9](link-to-pr-9)
- note about change in Issue 9
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)


### Closed Issues without Release Notes ⚠️
Expand Down
24 changes: 12 additions & 12 deletions __tests__/data/rls_notes_fully_populated_no_PRs_in_chapters.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
### Breaking Changes 💥
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
- note about change in Issue 7
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8


### New Features 🎉
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6


### Bugfixes 🛠
- **<span style="color: red;">[Duplicate]<span>** #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- _**[Duplicate]**_ #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)

Expand All @@ -31,9 +31,9 @@


### Closed Issues without User Defined Labels ⚠️
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
- #9 _Issue title 9 - no user defined label_ implemented by @janeDoe in [#9](link-to-pr-9)
- note about change in Issue 9
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)


### Closed Issues without Release Notes ⚠️
Expand Down
30 changes: 15 additions & 15 deletions __tests__/data/rls_notes_fully_populated_no_custom_chapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@


### Closed Issues without User Defined Labels ⚠️
- #9 _Issue title 9 - no user defined label_ implemented by @janeDoe in [#9](link-to-pr-9)
- note about change in Issue 9
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
- note about change in Issue 7
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
- note about change in Issue 1
- note about change in Issue 1 (no bullet point at start of line)
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
- note about change in Issue 2
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
- note about change in Issue 4
- #5 _Issue title 5 - not assigned|three PRs_ implemented by "Missing Assignee or Contributor" in [#5](link-to-pr-5), [#15](link-to-pr-15), [#16](link-to-pr-16)
- note about change in Issue 5
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
- note about change in Issue 6
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
- note about change in Issue 7
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
- note about change in Issue 8
- #9 _Issue title 9 - no user defined label_ implemented by @janeDoe in [#9](link-to-pr-9)
- note about change in Issue 9


### Closed Issues without Release Notes ⚠️
Expand Down
Loading

0 comments on commit cd4f7f2

Please sign in to comment.