github

package
v12.0.403 Latest Latest
Warning

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

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

Documentation

Overview

Package github provides GitHub integration handlers for the REST API.

Package github provides GitHub integration services for the REST API.

Package github provides GitHub integration types for the REST API.

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"`
}

GitHubRelease represents a GitHub release.

func FetchReleases

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

FetchReleases retrieves releases for a GitHub repository.

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"`
}

GitHubRepo represents a GitHub repository.

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"`
}

GitHubWorkflowRun represents a GitHub Actions workflow run.

func FetchWorkflowRuns

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

FetchWorkflowRuns retrieves workflow runs for a GitHub repository.

type OnboardRequest

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

OnboardRequest represents a request to onboard GitHub repositories.

Jump to

Keyboard shortcuts

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