Skip to content

Commit

Permalink
[wiki] Include dependency upgrades in changelog (#7177)
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Sep 12, 2023
1 parent b2ef54f commit d3095df
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
6 changes: 6 additions & 0 deletions generator-eui/changelog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ module.exports = class extends Generator {
type: 'confirm',
default: false,
},
{
message: 'Does your PR contain dependency updates?',
name: 'dependencyUpdates',
type: 'confirm',
default: false,
},
];

return this.prompt(prompts).then((answers) => {
Expand Down
5 changes: 5 additions & 0 deletions generator-eui/changelog/templates/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@

- Converted `EuiComponent` to Emotion; Removed `$euiComponentSassVariable`
<%_ } -%>
<%_ if (dependencyUpdates) { -%>
**Dependency updates**

- Updated `dependency` to v10.20.30
<%_ } -%>
4 changes: 4 additions & 0 deletions upcoming_changelogs/_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
**CSS-in-JS conversions**

- Converted `EuiComponent` to Emotion; Removed `$euiComponentSassVariable`

**Dependency updates**

- Updated `dependency` to v10.20.30
12 changes: 10 additions & 2 deletions wiki/contributing-to-eui/documenting/changelogs.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# Changelogs

All upcoming changelogs should go into the [upcoming_changelogs/](../../../upcoming_changelogs/_template.md) directory. Our release script automatically handles collating these files into our main [CHANGELOG.md](../../../CHANGELOG.md) on new EUI versions.

## When to write a changelog

Any updates to the `src/` folder require a new [upcoming changelog](../../../upcoming_changelogs/_template.md) file. Our release script handles collating upcoming changelog files into our main [CHANGELOG.md](../../../CHANGELOG.md) on new EUI versions.
- Any updates to the `src/` folder should include a changelog
- `dependency` upgrades in package.json should contain a changelog

## When to skip a changelog

Changes that do not impact consumers or end-users (e.g. documentation-only changes to `wiki/` or `src-docs/`) or infra/dev-only changes (e.g. changes to `.github/` or `scripts/`) do not require a changelog entry. You may use the `skip-changelog` label on your PR to bypass CI checks.
Changes that do not impact consumers or end-users may use the `skip-changelog` label on PRs to bypass CI checks. Examples of these types of changes:

- Documentation-only changes (e.g. changes to `wiki/` or `src-docs/`)
- Infra/dev-only changes (e.g. changes to `.github/` or `scripts/`)
- Test-only changes (e.g. changes to `*.test.tsx`, `*.spec.tsx`, or `*.stories.tsx` files)
- `dev-dependency` upgrades in package.json

## How to write a changelog

Expand Down

0 comments on commit d3095df

Please sign in to comment.