lib

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BigSep separates Issues in the input.
	BigSep = "\n---\n"
	// SmallSep separates metadata in the input.
	SmallSep = "|"
	// ListSep separates list items in metadata.
	ListSep = ","
	// TargetSep separates owner/repo.
	TargetSep = "/"

	// Byline is the suffix to append to Issue bodies.
	Byline = "> 🙌 Bulk-uploaded by https://github.com/hcgatewood/ghissue"

	// IndexWait is how long to wait between creating Issues and opening their
	// URL.
	IndexWait = 3 * time.Second
	// OpenSince is how far back from now to set the search time when opening
	// an Issue search URL.
	OpenSince = 30 * time.Second
)

Functions

func Create

func Create(cfg *Config, input string) ([]github.IssueRequest, error)

Create GitHub Issues.

func TrimInput

func TrimInput(s string) string

TrimInput trims the string input, pre-parsing. Callers should call this first on what they pass to Create.

Types

type Config

type Config struct {
	Token string

	Byline bool

	DryRun bool
	Info   bool
	Open   bool
}

Config for creating an Issue Request.

Jump to

Keyboard shortcuts

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