Help us shape the future of Go! Take the 2026 Go Developer Survey

post

package
v0.164.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package post checks a report before it is posted with the Slack connector, whose message is standard Markdown it converts for Slack: that every pull request or issue it mentions is a link to that pull request or issue in its own repository, and that its times are the person's.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(text string) []string

Check returns what is wrong with a report's links, one problem per entry; none: it passes.

func Linked added in v0.54.0

func Linked(text string, owners map[string]string, here string) string

Linked rewrites text so it passes Check: every [owner/]repo#n or bare #n outside a link and a code span becomes a link to its issue, its owner the one owners has for the repository, a bare #n in here (owner/repo); a beekeeper note or timer is "note <n>"; a reference it cannot place loses its # ("repo 12").

func Owners added in v0.54.0

func Owners(repos ...string) map[string]string

Owners maps each repository name of the owner/repo names to its owner, lowercased, for Linked.

func Report

func Report(text string, zone *time.Location, now time.Time) []string

Report is every check a report passes: Check and Zone.

func Zone

func Zone(text string, zone *time.Location, now time.Time) []string

Zone checks that a report tells its times in zone, the person's: its first line names the zone's abbreviation at now (EEST, CET), and no time is in UTC unless zone is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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