Skip to content

Commit 8b713db

Browse files
sirrealellatrix
andauthored
Autoformat changelogs (#62650)
Add configuration to autoformat the root changelog.txt file as markdown. It's authored with markdown syntax but the .txt extension prevents autoformatting. Apply autoformatting to markdown files: ```sh npm run format -- changelog.txt "packages/*/CHANGELOG.md" ``` Add a `linguist-language=Markdown` git attribute to changelog.txt so that GitHub treats it as markdown. --- Co-authored-by: sirreal <[email protected]> Co-authored-by: ellatrix <[email protected]>
1 parent a054c20 commit 8b713db

File tree

7 files changed

+30567
-28571
lines changed

7 files changed

+30567
-28571
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414

1515
# Directories with vendored code.
1616
packages/edit-site/lib/** linguist-vendored
17+
18+
# The changelog.txt file is authored as markdown.
19+
changelog.txt linguist-language=Markdown

.prettierrc.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
// Import the default config file and expose it in the project root.
22
// Useful for editor integrations.
3-
module.exports = require( '@wordpress/prettier-config' );
3+
module.exports = {
4+
...require( '@wordpress/prettier-config' ),
5+
overrides: [
6+
{
7+
files: [ 'changelog.txt' ],
8+
options: { parser: 'markdown' },
9+
},
10+
],
11+
};

changelog.txt

+30,463-28,556
Large diffs are not rendered by default.

packages/interactivity/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
### Bug Fixes
1919

20-
- Fix null and number strings as namespaces runtime error. ([#61960](https://github.com/WordPress/gutenberg/pull/61960/))
20+
- Fix null and number strings as namespaces runtime error. ([#61960](https://github.com/WordPress/gutenberg/pull/61960/))
2121

2222
## 5.7.0 (2024-05-16)
2323

packages/react-native-aztec/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ For each user feature we should also add a importance categorization label to i
1010
-->
1111

1212
## Unreleased
13+
1314
- [*] Bump Aztec-Android version to v1.5.1 [#36861]
1415
- [*] Add text input state to Aztec view [#40480]
1516

1617
## 1.50.0
18+
1719
- [*] Block split/merge fix for a (never shipped) regression (Android only) [#29683]
18-
- [***] Bump minimum deployment target to iOS 13.0 [#27577]
20+
- [***] Bump minimum deployment target to iOS 13.0 [#27577]

0 commit comments

Comments
 (0)