Skip to content

Commit

Permalink
fix unintentional drop of character in HISTORY (#7600)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Sep 25, 2023
1 parent 7183c3e commit 1f59075
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
12 changes: 7 additions & 5 deletions HISTORY.md
Expand Up @@ -2,27 +2,29 @@

[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.4.0)

### Packaging
### What's Changed

#### Packaging

* Update pydantic-core to 2.10.0 by @samuelcolvin in [#7542](https://github.com/pydantic/pydantic/pull/7542)

### New Features
#### New Features

* Add `Base64Url` types by @dmontagu in [#7286](https://github.com/pydantic/pydantic/pull/7286)
* Implement optional `number` to `str` coercion by @lig in [#7508](https://github.com/pydantic/pydantic/pull/7508)
* Allow access to `field_name` and `data` in all validators if there is data and a field name by @samuelcolvin in [#7542](https://github.com/pydantic/pydantic/pull/7542)
* Add `BaseModel.model_validate_strings` and `TypeAdapter.validate_strings` by @hramezani in [#7552](https://github.com/pydantic/pydantic/pull/7552)
* Add Pydantic `plugins` experimental implementation by @lig @samuelcolvin and @Kludex in [#6820](https://github.com/pydantic/pydantic/pull/6820)

### Changes
#### Changes

* Do not override `model_post_init` in subclass with private attrs by @Viicos in [#7302](https://github.com/pydantic/pydantic/pull/7302)
* Make fields with defaults not required in the serialization schema by default by @dmontagu in [#7275](https://github.com/pydantic/pydantic/pull/7275)
* Mark `Extra` as deprecated by @disrupted in [#7299](https://github.com/pydantic/pydantic/pull/7299)
* Make `EncodedStr` a dataclass by @Kludex in [#7396](https://github.com/pydantic/pydantic/pull/7396)
* Move `annotated_handlers` to be public by @samuelcolvin in [#7569](https://github.com/pydantic/pydantic/pull/7569)

### Performance
#### Performance

* Simplify flattening and inlining of `CoreSchema` by @adriangb in [#7523](https://github.com/pydantic/pydantic/pull/7523)
* Remove unused copies in `CoreSchema` walking by @adriangb in [#7528](https://github.com/pydantic/pydantic/pull/7528)
Expand All @@ -32,7 +34,7 @@
* Cache invalid `CoreSchema` discovery by @adriangb in [#7535](https://github.com/pydantic/pydantic/pull/7535)
* Allow disabling `CoreSchema` validation for faster startup times by @adriangb in [#7565](https://github.com/pydantic/pydantic/pull/7565)

### Fixes
#### Fixes

* Fix config detection for `TypedDict` from grandparent classes by @dmontagu in [#7272](https://github.com/pydantic/pydantic/pull/7272)
* Fix hash function generation for frozen models with unusual MRO by @dmontagu in [#7274](https://github.com/pydantic/pydantic/pull/7274)
Expand Down
14 changes: 4 additions & 10 deletions release/make_history.py
Expand Up @@ -67,17 +67,11 @@ def get_notes(new_version: str) -> str:
body = response.json()['body']
body = body.removeprefix('<!-- Release notes generated using configuration in .github/release.yml at main -->\n\n')

# We don't use the "What's Changed" header, the subgroups are already at `###` which is the correct level
body = body.removeprefix("## What's Changed\n")
# Add one level to all headers so they match HISTORY.md, and add trailing newline
body = re.sub(pattern='^(#+ .+?)$', repl=r'#\1\n', string=body, flags=re.MULTILINE)

# Correct "New Contributors" header level
body = re.sub(pattern='\n## New Contributors', repl='\n### New Contributors', string=body)

# Add newline after all ### headers as Github doesn't add spacing
body = re.sub(pattern='((^|\n)### .+?\n)', repl=r'\1\n', string=body)

# Ensure a blank line before ### headers
body = re.sub(pattern='[^\n](\n### .+?\n)', repl=r'\n\1', string=body)
# Ensure a blank line before headers
body = re.sub(pattern='([^\n])(\n#+ .+?\n)', repl=r'\1\n\2', string=body)

# Render PR links nicely
body = re.sub(
Expand Down

0 comments on commit 1f59075

Please sign in to comment.