Skip to content

Commit

Permalink
Autoformat changelogs (#62650)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
3 people committed Jun 20, 2024
1 parent a054c20 commit 8b713db
Show file tree
Hide file tree
Showing 7 changed files with 30,567 additions and 28,571 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@

# Directories with vendored code.
packages/edit-site/lib/** linguist-vendored

# The changelog.txt file is authored as markdown.
changelog.txt linguist-language=Markdown
10 changes: 9 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// Import the default config file and expose it in the project root.
// Useful for editor integrations.
module.exports = require( '@wordpress/prettier-config' );
module.exports = {
...require( '@wordpress/prettier-config' ),
overrides: [
{
files: [ 'changelog.txt' ],
options: { parser: 'markdown' },
},
],
};
59,019 changes: 30,463 additions & 28,556 deletions changelog.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/interactivity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

### Bug Fixes

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

## 5.7.0 (2024-05-16)

Expand Down
4 changes: 3 additions & 1 deletion packages/react-native-aztec/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ For each user feature we should also add a importance categorization label to i
-->

## Unreleased

- [*] Bump Aztec-Android version to v1.5.1 [#36861]
- [*] Add text input state to Aztec view [#40480]

## 1.50.0

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

0 comments on commit 8b713db

Please sign in to comment.