You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#92 - Add support for more characters as markdown list rows (#93)
* #92 - Add support for more characters as markdown list rows
- Implemented support for + and * characters.
- Applied black.
- Improvement of unit tests.
- Update of README.md
* #91 - Placeholder {number} does not # before Issue or PR number
- Removed the need to provide # in template of row - for record number.
- Update of pull-request to GitHub link type. Removed Markdown format of link.
Copy file name to clipboardExpand all lines: README.md
+26-25Lines changed: 26 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -54,12 +54,12 @@ Generate Release Notes action is dedicated to enhance the quality and organizati
54
54
### `row-format-issue`
55
55
-**Description**: The format of the row for the issue in the release notes. The format can contain placeholders for the issue `number`, `title`, and issues `pull-requests`. The placeholders are case-sensitive.
56
56
-**Required**: No
57
-
-**Default**: `#{number} _{title}_ in {pull-requests}"`
57
+
-**Default**: `"{number} _{title}_ in {pull-requests}"`
58
58
59
59
### `row-format-pr`
60
-
-**Description**: The format of the row for the PR in the release notes. The format can contain placeholders for the PR `number`, `title`, and PR `pull-requests`. The placeholders are case-sensitive.
60
+
-**Description**: The format of the row for the PR in the release notes. The format can contain placeholders for the PR `number`, and `title`. The placeholders are case-sensitive.
61
61
-**Required**: No
62
-
-**Default**: `#{number} _{title}_"`
62
+
-**Default**: `"{number} _{title}_"`
63
63
64
64
### `row-format-link-pr`
65
65
-**Description**: If defined `true`, the PR row will begin with a `"PR: "` string. Otherwise, no prefix will be added.
@@ -164,32 +164,31 @@ Add the following step to your GitHub workflow (in example are used non-default
164
164
## Features
165
165
### Built-in
166
166
#### Release Notes Extraction Process
167
+
This feature searches for release notes in the description of GitHub pull requests, making it easier for maintainers to track changes and updates.
168
+
- **Format:**
169
+
- The release notes section have to begin with the title `Release Notes:` (case-sensitive), followed by the release notes in bullet points. [Markdown formatting is supported](https://www.markdownguide.org/basic-syntax/#unordered-lists).
170
+
- If no release notes line is detected under the `Release Notes:` title, no release notes will be printed in the output.
171
+
- **Example:**
172
+
- Here are examples of how to structure the release notes:
173
+
```
174
+
Release Notes:
175
+
- This update introduces a new caching mechanism that improves performance by 20%.
167
176
168
-
This action requires that your GitHub issues include comments with specific release notes. Here's how it works:
177
+
Release Notes:
178
+
* This update introduces a new caching mechanism that improves performance by 20%.
169
179
170
-
**Extraction Method**:
171
-
- The action scans through comments on each closed issue since the last release. It identifies comments that follow the specified format and extracts the content as part of the release notes.
172
-
- The time considered for the previous release is based on its creation time. This means that the action will look for issues closed after the creation time of the most recent release to ensure that all relevant updates since that release are included.
180
+
Release Notes:
181
+
+ This update introduces a new caching mechanism that improves performance by 20%.
173
182
174
-
**Comment Format**
175
-
- For an issue's contributions to be included in the release notes, it must contain a comment starting with "Release Notes" followed by the note content. This comment is typically added by the contributors.
176
-
- Here is an example of the content for a 'Release Notes' string, which is not case-sensitive:
177
-
```
178
-
Release Notes
179
-
- This update introduces a new caching mechanism that improves performance by 20%.
180
183
```
181
-
- Using `-` as a bullet point for each note is the best practice. The Markdown parser will automatically convert it to a list.
182
-
- These comments are not required for action functionality. If an issue does not contain a "Release Notes" comment, it will be marked accordingly in the release notes. This helps maintainers quickly identify which issues need attention for documentation.
184
+
The extraction process supports all three types of bullet points: `-`, `*`, and `+`, and their combinations. (GitHub documentation do not recommend to mix them.)
183
185
184
-
#### Contributors Mention
185
-
Along with the release note content, the action also gathers a list of contributors for each issue. This includes issue assignees and authors of linked pull requests' commits, providing acknowledgment for their contributions in the release notes.
186
+
- **Best Practice:** Select one character from `-`, `*`, `+` for bullet points. The Markdown parser will automatically format them as a list.
187
+
- **Optional usage:** The release notes section is not mandatory for GH action to work.
186
188
187
189
#### Handling Multiple PRs
188
190
If an issue is linked to multiple PRs, the action fetches and aggregates contributions from all linked PRs.
189
191
190
-
#### No Release Notes Found
191
-
If no valid "Release Notes" comment is found in an issue, it will be marked accordingly. This helps maintainers quickly identify which issues need attention for documentation.
192
-
193
192
### Select start date for closed issues and PRs
194
193
By set **published-at** to true the action will use the `published-at` timestamp of the latest release as the reference point for searching closed issues and PRs, instead of the `created-at` date. If first release, repository creation date is used.
195
194
@@ -210,7 +209,7 @@ The action includes four specific warning chapters to highlight potential areas
210
209
- **Importance**: Ensures all issues are categorized correctly according to the project's classification system. It aids in organizing release notes into predefined chapters effectively.
211
210
212
211
- **_Closed Issues Without Release Notes_**
213
-
- **Purpose**: Identifies issues that do not contain a "Release Notes" comment.
212
+
- **Purpose**: Identifies pull requests which do not contain a "Release Notes" section in description.
214
213
- **Importance**: Ensures that all significant changes are properly documented in the release notes, enhancing the completeness and usefulness of the release information provided to end-users.
215
214
216
215
- **_Merged PRs Without Linked Issue_**
@@ -341,16 +340,18 @@ Unit tests are written using pytest. To run the tests, use the following command
341
340
pytest tests/
342
341
```
343
342
344
-
This will execute all tests located in the tests directory and generate a code coverage report.
343
+
This will execute all tests located in the tests directory.
345
344
346
345
## Code Coverage
347
346
348
347
Code coverage is collected using pytest-cov coverage tool. To run the tests and collect coverage information, use the following command:
This will execute all tests located in the tests directory and generate a code coverage report.
354
+
354
355
See the coverage report on the path:
355
356
356
357
```
@@ -448,8 +449,8 @@ We defined chapters for our GH actions this way:
448
449
Then in chapters `New Features 🎉` and `Bugfixes 🛠` will be duplicated lines for this issue. When mentioned second+ times then **[Duplicate]** prefix will be visible.
449
450
In the `New Features 🎉` chapter will be mentioned this issue once only.
450
451
451
-
### What will happen when the issue contains multiple "Release Notes" comments?
452
-
All issue comments are checked for presence of `Release Notes` string. All detected release notes are collected printed under issue.
452
+
### What will happen when the pull request contains multiple "Release Notes" sections?
453
+
Only the first one will be used.
453
454
454
455
### What will happen when Merged PR is linked to open issues?
455
456
The PR will be mentioned in warning chapter **Merged PRs Linked to Open Issue**.
Copy file name to clipboardExpand all lines: action.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -52,13 +52,13 @@ inputs:
52
52
required: false
53
53
default: 'false'
54
54
row-format-issue:
55
-
description: 'Format of the issue row in the release notes. Available placeholders: {link}, {title}, {pull-requests}. Placeholders are case-insensitive.'
55
+
description: 'Format of the issue row in the release notes. Available placeholders: {number}, {title}, {pull-requests}. Placeholders are case-insensitive.'
56
56
required: false
57
-
default: '#{number} _{title}_ in {pull-requests}'
57
+
default: '{number} _{title}_ in {pull-requests}'
58
58
row-format-pr:
59
-
description: 'Format of the pr row in the release notes. Available placeholders: {link}, {title}, {pull-requests}. Placeholders are case-insensitive.'
59
+
description: 'Format of the pr row in the release notes. Available placeholders: {number}, {title}, {pull-requests}. Placeholders are case-insensitive.'
60
60
required: false
61
-
default: '#{number} _{title}_'
61
+
default: '{number} _{title}_'
62
62
row-format-link-pr:
63
63
description: 'Add prefix "PR:" before link to PR when not linked an Issue.'
0 commit comments