githubapp

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenInBrowser

func OpenInBrowser(u string) error

Types

type AppConfigResult

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

AppConfigResult represents a GitHub App configuration result.

type GitHubApp

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

GitHubApp represents a GitHub App, is responsible to provide the necessary structure for the GitHub oAuth2 workflow. GitHub Apps are protected with JWT web token, thus the oAuth2 workflow uses the (primary) browser to interact with 2FA and other GitHub security measures.

func NewGitHubApp

func NewGitHubApp(logger *slog.Logger) *GitHubApp

NewGitHubApp creates a new GitHub App instance.

func (*GitHubApp) Create

func (g *GitHubApp) Create(
	ctx context.Context,
	manifest scrape.AppManifest,
) (*github.AppConfig, error)

Create creates a new GitHub App using the provided manifest. The manifest is submitted to GitHub using a regular web form to leverate the required OAuth2 flow.

func (*GitHubApp) PersistentFlags

func (g *GitHubApp) PersistentFlags(cmd *cobra.Command)

PersistentFlags sets the persistent flags for the GitHub App.

func (*GitHubApp) Validate

func (g *GitHubApp) Validate() error

Validate validates the GitHub App configuration.

Jump to

Keyboard shortcuts

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