Skip to content

Commit f76434e

Browse files
committed
chore: add changelog entry to contributing md
1 parent 529ce55 commit f76434e

4 files changed

Lines changed: 29 additions & 25 deletions

File tree

.chloggen/TEMPLATE.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,4 @@ issues: []
1515
# (Optional) One or more lines of additional information to render under the primary note.
1616
# These lines will be padded with 2 spaces and then inserted directly into the document.
1717
# Use pipe (|) for multiline entries.
18-
subtext:
19-
20-
# If your change doesn't affect end users or the exported elements of any package,
21-
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22-
# Optional: The change log or logs in which this entry should be included.
23-
# e.g. '[user]' or '[user, api]'
24-
# Include 'user' if the change is relevant to end users.
25-
# Include 'api' if there is a change to a library API.
26-
# Default: '[user]'
27-
change_logs: []
18+
subtext:

.github/workflows/changelog.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# This action requires that any PR targeting the main branch should add a
22
# yaml file to the ./.chloggen/ directory. If a CHANGELOG entry is not required,
3-
# or if performing maintance on the Changelog, add either \"[chore]\" to the title of
4-
# the pull request or add the \"Skip Changelog\" label to disable this action.
3+
# or if performing maintenance on the Changelog, add the "Skip Changelog" label,
4+
# or prefix the pull request title with any of the following: "[chore]", "chore:",
5+
# "build:", "ci:", "docs:", "refactor:", "style:", "test:".
56

67
name: changelog
78

@@ -37,7 +38,7 @@ jobs:
3738
PR_TITLE: ${{ github.event.pull_request.title }}
3839
PR_LABELS: ${{ toJSON(github.event.pull_request.labels.*.name) }}
3940
run: |
40-
CHLOG_EXEMPT_PREFIXES=('[chore]' 'chore:' 'ci:' 'docs:')
41+
CHLOG_EXEMPT_PREFIXES=('[chore]' 'chore:' 'build:' 'ci:' 'docs:' 'refactor:' 'style:' 'test:')
4142
for prefix in "${CHLOG_EXEMPT_PREFIXES[@]}"; do
4243
if [[ "$PR_TITLE" == "$prefix"* ]]; then
4344
echo "Title has exempt prefix '$prefix'; changelog not required."

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
<!-- This file is autogenerated. See CONTRIBUTING.md for instructions to add an entry. -->
22

3-
43
<!-- next version -->

CONTRIBUTING.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,30 @@ apply to specific distros.
3939

4040
The type must be one of the following:
4141

42-
| Type | Description |
43-
|--------------|---------------------------------------------------------------|
44-
| **build** | Changes that affect the build system or external dependencies |
45-
| **ci** | Changes to CI configs and scripts |
46-
| **docs** | Documentation changes |
47-
| **feat** | A new feature |
48-
| **fix** | A bug fix related to one of the distros |
49-
| **perf** | A performance enhancement |
50-
| **refactor** | A code change that neither fixes a bug nor adds a feature |
51-
| **style** | Changes that effect only code style |
52-
| **test** | Adding or updating tests |
42+
| Type | Description | Changelog Required |
43+
|--------------|---------------------------------------------------------------|--------------------|
44+
| **build** | Changes that affect the build system or external dependencies | no |
45+
| **ci** | Changes to CI configs and scripts | no |
46+
| **docs** | Documentation changes | no |
47+
| **feat** | A new feature | yes |
48+
| **fix** | A bug fix related to one of the distros | yes |
49+
| **perf** | A performance enhancement | yes |
50+
| **refactor** | A code change that neither fixes a bug nor adds a feature | no |
51+
| **style** | Changes that effect only code style | no |
52+
| **test** | Adding or updating tests | no |
53+
54+
### Changelog
55+
56+
Pull requests which include user-facing changes must be accompanied by a changelog entry. This repository uses OpenTelemetry's `chloggen` tool to manage changelog entries. To make a changelog entry:
57+
58+
1. Create an entry file using `make chlog-new`
59+
2. Fill in the empty fields in the new file
60+
3. Run `make chlog-validate` to validate the new file
61+
4. Commit the file with your changes
62+
63+
If a changelog entry is not required, you may prefix your PR title with any of the conventional commit tags marked "no" in the table above, or add the `Skip Changelog` label to your pull request.
64+
65+
During the release process, all changelog entries are transcribed in CHANGELOG.md and added to [NRDOT's release notes](https://docs.newrelic.com/docs/release-notes/nrdot-release-notes/).
5366

5467
## Contributor License Agreement
5568

0 commit comments

Comments
 (0)