mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-02-06 17:57:05 +00:00
refactor: releasepr markdown handling
This commit is contained in:
parent
0750bd6b46
commit
94caead6aa
6 changed files with 466 additions and 83 deletions
|
|
@ -7,7 +7,8 @@ import (
|
|||
// A Section struct represents a section of elements.
|
||||
type Section struct {
|
||||
gast.BaseBlock
|
||||
Name string
|
||||
Name string
|
||||
Hidden bool
|
||||
}
|
||||
|
||||
// Dump implements Node.Dump.
|
||||
|
|
@ -26,6 +27,10 @@ func (n *Section) Kind() gast.NodeKind {
|
|||
return KindSection
|
||||
}
|
||||
|
||||
func (n *Section) HideInOutput() {
|
||||
n.Hidden = true
|
||||
}
|
||||
|
||||
// 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