selfreportengine

package
v0.0.0-...-fd387ad Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package selfreportengine provides the domain kernel for filing GitHub issues via githubclient's authenticated go-github client. It exposes CreateIssue as the single entry point and NewGitHubClient as a swappable factory seam for testing, keeping targetRepo unexported.

Index

Constants

This section is empty.

Variables

View Source
var NewGitHubClient = githubclient.New

NewGitHubClient is the seam through which CreateIssue obtains an authenticated *github.Client, swappable for testing.

Functions

func CreateIssue

func CreateIssue(title string, body *string, labels []string) (url string, number int, err error)

CreateIssue files a GitHub issue with the given title, optional body, and labels. It returns the issue's HTML URL and issue number on success. Error handling distinguishes token-resolution failures (errors.Is(err, githubclient.ErrTokenUnresolvable)), network failures (*github.ErrorResponse absent), and API rejections (*github.ErrorResponse present).

Types

This section is empty.

Jump to

Keyboard shortcuts

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