Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuthorList ¶
BuildAuthorList deduplicates all (may contain duplicates), sorts alphabetically, then prepends current as the first entry (removing it from its sorted position if present). If current is empty, the sorted deduplicated list is returned as-is.
func FillOutForm ¶
func FillOutForm(cfg *config.AppConfig, defaults tui.CommitOption, hint IssueHint) ([]byte, tui.CommitOption, error)
FillOutForm presents the commit TUI form. Group 1: type select + commit message fields (scope, subject, body, footer). Group 2: commit options (author, all, amend, no-verify, signoff, allow-empty).
Group 2 is skipped when defaults.AnyOptionSet() is true (flags were passed).
The hint pre-populates one message field and pre-selects the commit type when it matches a configured type. Zero hint = no pre-population.
Returns the assembled commit message bytes and the (possibly user-modified) options.