Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstallationToken ¶
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")
}
Click to show internal directories.
Click to hide internal directories.