mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-02-07 10:17:02 +00:00
fix: using code blocks within release-notes
Increase the number of code blocks backticks to 4 for the release note prefix and suffix, to allow users to embed their own code blocks using only 3 backticks.
This commit is contained in:
parent
93bb42e781
commit
7f25b3bf92
13 changed files with 229 additions and 103 deletions
44
internal/testdata/description-overrides.txt
vendored
Normal file
44
internal/testdata/description-overrides.txt
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<!-- section-start changelog -->
|
||||
## v1.0.0
|
||||
<!-- section-end changelog -->
|
||||
|
||||
---
|
||||
|
||||
<details>
|
||||
<summary><h4>PR by <a href="https://github.com/apricote/releaser-pleaser">releaser-pleaser</a> 🤖</h4></summary>
|
||||
|
||||
If you want to modify the proposed release, add you overrides here. You can learn more about the options in the docs.
|
||||
|
||||
## Release Notes
|
||||
|
||||
### Prefix / Start
|
||||
|
||||
This will be added to the start of the release notes.
|
||||
|
||||
~~~~rp-prefix
|
||||
## Foo
|
||||
|
||||
- Cool thing
|
||||
|
||||
```go
|
||||
// Some code example
|
||||
func IsPositive(number int) error {
|
||||
if number < 0 {
|
||||
return fmt.Errorf("number %d is negative", number)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
```
|
||||
~~~~
|
||||
|
||||
### Suffix / End
|
||||
|
||||
This will be added to the end of the release notes.
|
||||
|
||||
~~~~rp-suffix
|
||||
## Compatibility
|
||||
|
||||
No compatibility guarantees.
|
||||
~~~~
|
||||
|
||||
</details>
|
||||
Loading…
Add table
Add a link
Reference in a new issue