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 ¶
var NewGitHubClient = githubclient.New
NewGitHubClient is the seam through which CreateIssue obtains an authenticated *github.Client, swappable for testing.
Functions ¶
func CreateIssue ¶
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.