Documentation
¶
Index ¶
- func AddLabelsToRepository(owner, repo string, labels []string) error
- func ExtractCommitHash(releaseBody string) string
- func FetchGitHubRepositories(owner string) ([]string, error)
- func GetRepositories(scm, owner string) ([]string, error)
- type GitHubRelease
- type GitspaceCatalog
- type Plugin
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLabelsToRepository ¶
func ExtractCommitHash ¶
ExtractCommitHash attempts to extract the commit hash from the release body
func FetchGitHubRepositories ¶
func GetRepositories ¶
Types ¶
type GitHubRelease ¶
type GitHubRelease struct { TagName string `json:"tag_name"` PublishedAt time.Time `json:"published_at"` Body string `json:"body"` }
GitHubRelease represents the structure of a GitHub release
func GetLatestGitHubRelease ¶
func GetLatestGitHubRelease(owner, repo string) (*GitHubRelease, error)
GetLatestGitHubRelease fetches the latest release information from GitHub
type GitspaceCatalog ¶
type GitspaceCatalog struct { Catalog struct { Name string `toml:"name"` Description string `toml:"description"` Version string `toml:"version"` LastUpdated struct { Date string `toml:"date"` CommitHash string `toml:"commit_hash"` } `toml:"last_updated"` } `toml:"catalog"` Plugins map[string]Plugin `toml:"plugins"` Templates map[string]Template `toml:"templates"` }
GitspaceCatalog represents the structure of the gitspace-catalog.toml file
func FetchGitspaceCatalog ¶
func FetchGitspaceCatalog(owner, repo string) (*GitspaceCatalog, error)
FetchGitspaceCatalog fetches the gitspace-catalog.toml file from the specified repository
Click to show internal directories.
Click to hide internal directories.