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
{% data reusables.repositories.navigate-to-repo %}
56
56
{% data reusables.files.add-file %}
57
57
3. In the file name field, type `.github/release.yml` to create the `release.yml` file in the `.github` directory.
58
58

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.
60
60
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
62
73
63
74
{% raw %}
64
-
**release.yml**
65
75
```yaml{:copy}
66
-
# release.yml
76
+
# .github/release.yml
67
77
68
78
changelog:
69
79
exclude:
@@ -86,14 +96,6 @@ changelog:
86
96
```
87
97
{% endraw %}
88
98
89
-
## Release template syntax
99
+
## Further reading
90
100
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. |
0 commit comments