Skip to content

Commit cd4f7f2

Browse files
Fixed ordering of rows for all chapters. (#39)
Fixed ordering of chapters. They are ordered from the oldest one (the lowest issue or pr number).
1 parent 6fea6a9 commit cd4f7f2

9 files changed

+185
-142
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ We defined chapters for our GH actions this way:
180180
{"title": "Bugfixes 🛠", "label": "bug"}
181181
]'
182182
```
183-
Then in chapters `New Features 🎉` and `Bugfixes 🛠` will be duplicated lines for this issue.
183+
Then in chapters `New Features 🎉` and `Bugfixes 🛠` will be duplicated lines for this issue. When mentioned second+ times then **[Duplicate]** prefix will be visible.
184184
In the `New Features 🎉` chapter will be mentioned this issue once only.
185185
186186
#### What will happen when the issue contains multiple "Release Notes" comments?

__tests__/data/rls_notes_fully_populated_custom_skip_label.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
### Breaking Changes 💥
2-
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
3-
- note about change in Issue 8
42
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
53
- note about change in Issue 7
4+
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
5+
- note about change in Issue 8
66

77

88
### New Features 🎉
9-
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
10-
- note about change in Issue 6
11-
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
12-
- note about change in Issue 4
13-
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
14-
- note about change in Issue 2
159
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
1610
- note about change in Issue 1
1711
- note about change in Issue 1 (no bullet point at start of line)
12+
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
13+
- note about change in Issue 2
14+
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
15+
- note about change in Issue 4
16+
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
17+
- note about change in Issue 6
1818

1919

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

2525

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

3131

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

3838

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

4343

4444
### Merged PRs without Linked Issue and Custom Labels ⚠️

__tests__/data/rls_notes_fully_populated_first_release.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
### Breaking Changes 💥
2-
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
3-
- note about change in Issue 8
42
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
53
- note about change in Issue 7
4+
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
5+
- note about change in Issue 8
66

77

88
### New Features 🎉
9-
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
10-
- note about change in Issue 6
11-
- #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)
12-
- note about change in Issue 5
13-
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
14-
- note about change in Issue 4
15-
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
16-
- note about change in Issue 2
179
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
1810
- note about change in Issue 1
1911
- note about change in Issue 1 (no bullet point at start of line)
12+
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
13+
- note about change in Issue 2
14+
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
15+
- note about change in Issue 4
16+
- #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)
17+
- note about change in Issue 5
18+
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
19+
- note about change in Issue 6
2020
- #1001 _Pull Request 1_ implemented by @janeDoe
2121
- This is second PR comment ad RLS note
2222
- This is third PR comment ad RLS note
2323

2424

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

@@ -37,9 +37,9 @@
3737

3838

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

4444

4545
### Closed Issues without Release Notes ⚠️

__tests__/data/rls_notes_fully_populated_hide_warning_chapters.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
### Breaking Changes 💥
2-
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
3-
- note about change in Issue 8
42
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
53
- note about change in Issue 7
4+
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
5+
- note about change in Issue 8
66

77

88
### New Features 🎉
9-
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
10-
- note about change in Issue 6
11-
- #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)
12-
- note about change in Issue 5
13-
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
14-
- note about change in Issue 4
15-
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
16-
- note about change in Issue 2
179
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
1810
- note about change in Issue 1
1911
- note about change in Issue 1 (no bullet point at start of line)
12+
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
13+
- note about change in Issue 2
14+
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
15+
- note about change in Issue 4
16+
- #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)
17+
- note about change in Issue 5
18+
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
19+
- note about change in Issue 6
2020

2121

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

__tests__/data/rls_notes_fully_populated_in_default.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
### Breaking Changes 💥
2-
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
3-
- note about change in Issue 8
42
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
53
- note about change in Issue 7
4+
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
5+
- note about change in Issue 8
66

77

88
### New Features 🎉
9-
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
10-
- note about change in Issue 6
11-
- #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)
12-
- note about change in Issue 5
13-
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
14-
- note about change in Issue 4
15-
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
16-
- note about change in Issue 2
179
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
1810
- note about change in Issue 1
1911
- note about change in Issue 1 (no bullet point at start of line)
12+
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
13+
- note about change in Issue 2
14+
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
15+
- note about change in Issue 4
16+
- #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)
17+
- note about change in Issue 5
18+
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
19+
- note about change in Issue 6
2020
- #1001 _Pull Request 1_ implemented by @janeDoe
2121
- This is second PR comment ad RLS note
2222
- This is third PR comment ad RLS note
2323

2424

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

@@ -37,9 +37,9 @@
3737

3838

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

4444

4545
### Closed Issues without Release Notes ⚠️

__tests__/data/rls_notes_fully_populated_no_PRs_in_chapters.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
### Breaking Changes 💥
2-
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
3-
- note about change in Issue 8
42
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
53
- note about change in Issue 7
4+
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
5+
- note about change in Issue 8
66

77

88
### New Features 🎉
9-
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
10-
- note about change in Issue 6
11-
- #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)
12-
- note about change in Issue 5
13-
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
14-
- note about change in Issue 4
15-
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
16-
- note about change in Issue 2
179
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
1810
- note about change in Issue 1
1911
- note about change in Issue 1 (no bullet point at start of line)
12+
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
13+
- note about change in Issue 2
14+
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
15+
- note about change in Issue 4
16+
- #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)
17+
- note about change in Issue 5
18+
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
19+
- note about change in Issue 6
2020

2121

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

@@ -31,9 +31,9 @@
3131

3232

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

3838

3939
### Closed Issues without Release Notes ⚠️

__tests__/data/rls_notes_fully_populated_no_custom_chapters.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44

55

66
### Closed Issues without User Defined Labels ⚠️
7-
- #9 _Issue title 9 - no user defined label_ implemented by @janeDoe in [#9](link-to-pr-9)
8-
- note about change in Issue 9
9-
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
10-
- note about change in Issue 8
11-
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
12-
- note about change in Issue 7
13-
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
14-
- note about change in Issue 6
15-
- #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)
16-
- note about change in Issue 5
17-
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
18-
- note about change in Issue 4
19-
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
20-
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
21-
- note about change in Issue 2
227
- #1 _Issue title 1_ implemented by @janeDoe in [#1](link-to-pr-1)
238
- note about change in Issue 1
249
- note about change in Issue 1 (no bullet point at start of line)
10+
- #2 _Issue title 2_ implemented by @johnDoe in [#2](link-to-pr-2)
11+
- note about change in Issue 2
12+
- #3 _Issue title 3 - no release note comment|typo label_ implemented by @janeDoe in [#3](link-to-pr-3)
13+
- #4 _Issue title 4 - assigned|one PR_ implemented by @johnDoe in [#4](link-to-pr-4)
14+
- note about change in Issue 4
15+
- #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)
16+
- note about change in Issue 5
17+
- #6 _Issue title 6 - not assigned|no PR_ implemented by "Missing Assignee or Contributor"
18+
- note about change in Issue 6
19+
- #7 _Issue title 7 - with co-author|public mail_ implemented by @janeDoe, @johnDoe in [#7](link-to-pr-7)
20+
- note about change in Issue 7
21+
- #8 _Issue title 8 - with co-author|private mail_ implemented by @johnDoe, Jane Doe in [#8](link-to-pr-8)
22+
- note about change in Issue 8
23+
- #9 _Issue title 9 - no user defined label_ implemented by @janeDoe in [#9](link-to-pr-9)
24+
- note about change in Issue 9
2525

2626

2727
### Closed Issues without Release Notes ⚠️

0 commit comments

Comments
 (0)