issue

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package issue allows to query on issues against the remote issue provider

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder interface {

	// FindById allows to retrieve an issue given its identifier.
	// It optionally writes any relevant warnings or messages to eventually output into the io.Writer object specified.
	FindById(w io.Writer, repo string, id string) (Info, error)
}

Finder is the interface used to manipulate issues

type GHIssueFinder

type GHIssueFinder struct{}

GHIssueFinder is a struct type that implements the issue.Finder interface

func NewGHIssueFinder

func NewGHIssueFinder() *GHIssueFinder

NewGHIssueFinder returns a new object of type GHIssueFinder

func (GHIssueFinder) FindById

func (g GHIssueFinder) FindById(w io.Writer, repo string, id string) (Info, error)

FindById allows to retrieve an issue given its identifier. It optionally writes any relevant warnings or messages to eventually output into the io.Writer object specified.

type Info

type Info struct {
	Id    string
	Title string
}

Info is a generic struct representing a given issue

Jump to

Keyboard shortcuts

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