convert

package
v0.0.66 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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