mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 21:21:03 +00:00
feat(releasepr): release PRs can be updated
- PR Description - Read prefix+suffix from PR description and put into changelog - Keep those overrides on PR description changes - Add pending level to new PRs
This commit is contained in:
parent
cb529f4760
commit
fe871a0213
17 changed files with 1442 additions and 22 deletions
32
internal/markdown/extensions/ast/section.go
Normal file
32
internal/markdown/extensions/ast/section.go
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
package ast
|
||||
|
||||
import (
|
||||
gast "github.com/yuin/goldmark/ast"
|
||||
)
|
||||
|
||||
// A Section struct represents a section of elements.
|
||||
type Section struct {
|
||||
gast.BaseBlock
|
||||
Name string
|
||||
}
|
||||
|
||||
// Dump implements Node.Dump.
|
||||
func (n *Section) Dump(source []byte, level int) {
|
||||
m := map[string]string{
|
||||
"Name": n.Name,
|
||||
}
|
||||
gast.DumpHelper(n, source, level, m, nil)
|
||||
}
|
||||
|
||||
// KindSection is a NodeKind of the Section node.
|
||||
var KindSection = gast.NewNodeKind("Section")
|
||||
|
||||
// Kind implements Node.Kind.
|
||||
func (n *Section) Kind() gast.NodeKind {
|
||||
return KindSection
|
||||
}
|
||||
|
||||
// NewSection returns a new Section node.
|
||||
func NewSection(name string) *Section {
|
||||
return &Section{Name: name}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue