bots

package
v0.0.0-...-4f0d0f2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureRequestBot

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

FeatureRequestBot fetches feature requests that are: - have state open - are older than 60 days - do not have a linked PR

func NewFeatureRequestBot

func NewFeatureRequestBot(apiToken string, owner string, repo string) *FeatureRequestBot

NewFeatureRequestBot creates the bot with your GitHub api key and github repo details

func (*FeatureRequestBot) GetStaleFeatureRequests

func (frb *FeatureRequestBot) GetStaleFeatureRequests(optParams ...string) ([]*github.Issue, error)

GetStaleFeatureRequests return an array of stale feature requests

func (*FeatureRequestBot) PrintStaleFeatureRequestsAsCSV

func (frb *FeatureRequestBot) PrintStaleFeatureRequestsAsCSV() error

PrintStaleFeatureRequestsAsCSV prints out the stale feature requests with fmt To create a CSV From the cmd line: go run cmd/main.go -apiToken=xxx > /tmp/stalefrs.csv

Jump to

Keyboard shortcuts

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