github

package
v12.0.339 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstallationToken

func GetInstallationToken(installationID string) (string, error)

GetInstallationToken generates a short-lived installation access token

func ListRepos

func ListRepos(db database.DBConnection) fiber.Handler

ListRepos returns the list of repositories accessible to the user via App Installation

func OnboardRepos

func OnboardRepos(db database.DBConnection) fiber.Handler

OnboardRepos processes the selected repositories using the App Installation Token

Types

type GitHubRelease

type GitHubRelease struct {
	Name        string    `json:"name"`
	TagName     string    `json:"tag_name"`
	PublishedAt time.Time `json:"published_at"`
	Body        string    `json:"body"`
}

func FetchReleases

func FetchReleases(token, owner, repo string) ([]GitHubRelease, error)

type GitHubRepo

type GitHubRepo struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	FullName    string `json:"full_name"`
	Description string `json:"description"`
	HTMLURL     string `json:"html_url"`
	Private     bool   `json:"private"`
}

func FetchRepos

func FetchRepos(installationToken string) ([]GitHubRepo, error)

FetchRepos retrieves repositories accessible to the installation

type GitHubWorkflowRun

type GitHubWorkflowRun struct {
	ID         int       `json:"id"`
	Name       string    `json:"name"`
	Status     string    `json:"status"`
	Conclusion string    `json:"conclusion"`
	UpdatedAt  time.Time `json:"updated_at"`
	HeadBranch string    `json:"head_branch"`
	HeadSha    string    `json:"head_sha"`
}

func FetchWorkflowRuns

func FetchWorkflowRuns(token, owner, repo string) ([]GitHubWorkflowRun, error)

type OnboardRequest

type OnboardRequest struct {
	Repos []string `json:"repos"` // List of full_names (e.g. "owner/repo")
}

Jump to

Keyboard shortcuts

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