Skip to content

Commit 42ba754

Browse files
authored
Merge pull request #12021 from github/repo-sync
repo sync
2 parents 0479acc + 61e8e99 commit 42ba754

3 files changed

Lines changed: 25 additions & 23 deletions

File tree

content/repositories/releasing-projects-on-github/automatically-generated-release-notes.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,30 @@ Automatically generated release notes provide an automated alternative to manual
5050
![Publish release and Draft release buttons](/assets/images/help/releases/release_buttons.png)
5151

5252

53-
## Creating a template for automatically generated release notes
53+
## Configuring automatically generated release notes
5454

5555
{% data reusables.repositories.navigate-to-repo %}
5656
{% data reusables.files.add-file %}
5757
3. In the file name field, type `.github/release.yml` to create the `release.yml` file in the `.github` directory.
5858
![Create new file](/assets/images/help/releases/release-yml.png)
59-
4. In the file, specify the pull request labels and authors you want to exclude from this release. You can also create new categories and list the pull request labels to be included in each of them. For more information, see "[Managing labels](/issues/using-labels-and-milestones-to-track-work/managing-labels)."
59+
4. In the file, using the configuration options below, specify in YAML the pull request labels and authors you want to exclude from this release. You can also create new categories and list the pull request labels to be included in each of them.
6060

61-
## Example configuration
61+
### Configuration options
62+
63+
| Parameter | Description |
64+
| :- | :- |
65+
| `changelog.exclude.labels` | A list of labels that exclude a pull request from appearing in release notes. |
66+
| `changelog.exclude.authors` | A list of user or bot login handles whose pull requests are to be excluded from release notes. |
67+
| `changelog.categories[*].title` | **Required.** The title of a category of changes in release notes. |
68+
| `changelog.categories[*].labels`| **Required.** Labels that qualify a pull request for this category. Use `*` as a catch-all for pull requests that didn't match any of the previous categories. |
69+
| `changelog.categories[*].exclude.labels` | A list of labels that exclude a pull request from appearing in this category. |
70+
| `changelog.categories[*].exclude.authors` | A list of user or bot login handles whose pull requests are to be excluded from this category. |
71+
72+
### Example configuration
6273

6374
{% raw %}
64-
**release.yml**
6575
```yaml{:copy}
66-
# release.yml
76+
# .github/release.yml
6777
6878
changelog:
6979
exclude:
@@ -86,14 +96,6 @@ changelog:
8696
```
8797
{% endraw %}
8898

89-
## Release template syntax
99+
## Further reading
90100

91-
| Parameter | Description |Required | Value |
92-
| :- | :- | :- | :- |
93-
|`changelog` | Defines the contents within it as the custom template for your release notes.|Required. | No value accepted.|
94-
|`exclude`| Creates a category of pull requests to be excluded from the release. Can be set at the top-level of the changelog to apply to all categories or applied on a per-category basis. |Optional | No value accepted.|
95-
|`authors`| Specifies authors to be excluded from the release.| Optional for `exclude` category.| Accepts usernames and bots as values.|
96-
|`categories`| Defines the nested contents as custom categories to be included in the template. |Optional | No value accepted.|
97-
|`title`| Creates an individual category. |Required if `categories` parameter exists.| Takes the category name as its value. |
98-
|`labels`| Specifies labels to be used by the enclosing category.| Required if `categories` parameter exists, optional for `exclude` parameter.| Accepts any labels, whether currently existing or planned for the future.|
99-
|`"*"`| Catchall for any pull request not included within a category *above*. If used, it must be added at the end of the file. | Optional| No value accepted. |
101+
- "[Managing labels](/issues/using-labels-and-milestones-to-track-work/managing-labels)"

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"remark-gfm": "^3.0.1",
8383
"remark-parse": "^10.0.0",
8484
"remark-parse-no-trim": "^8.0.4",
85-
"remark-rehype": "^10.0.0",
85+
"remark-rehype": "^10.0.1",
8686
"revalidator": "^0.3.1",
8787
"rss-parser": "^3.12.0",
8888
"scroll-anchoring": "^0.1.0",

0 commit comments

Comments
 (0)