convert

package
v0.0.65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builder

func Builder() *cobra.Command

func SlackBuilder

func SlackBuilder() *cobra.Command

SlackBuilder constructs the command for converting the changelog entries into a format that can be used with Slack APIs. changelog convert slack -p path_to_changelog -m message_id 1503435956.000247 -c channel_id C061EG9SL.

Types

type Attachment

type Attachment struct {
	Text           string `json:"text"`
	Color          string `json:"color"`
	AttachmentType string `json:"attachment_type"`
}

Attachment represents the structure of each attachment in the JSON.

type Message

type Message struct {
	Channel     string        `json:"channel"`
	ThreadTS    string        `json:"thread_ts,omitempty"`
	Parse       string        `json:"parse"`
	Attachments []*Attachment `json:"attachments"`
}

Message represents the overall structure of the SLACK message JSON.

type SlackOpts

type SlackOpts struct {
	// contains filtered or unexported fields
}

func (*SlackOpts) Run

func (o *SlackOpts) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL