github_issue

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenIssue

func OpenIssue(ghToken, title, description string, isFeatureRequest bool) (string, error)

OpenIssue

@brief:

OpenIssue open an issue on in Terrap's repository

@params:

ghToken - string - the GitHub token to use
title - string - the issue title
description - string - the problem / feature request title
isFeatureRequest - bool - is a feature request

@returns:

string - the new issue number
error - if exists

Types

type RateError

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

RateError represents a case where the amount of GitHub url calls allowed per hour was exceeded

func (RateError) Error

func (e RateError) Error() string

Error

@brief:

Error implementation of the error interface

@returns:

string - the error itself

func (*RateError) Unwrap

func (e *RateError) Unwrap() error

Unwrap

@brief:

Unwrap returns the wrapped error, if any.

@returns:

error

Jump to

Keyboard shortcuts

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