Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
	Organizations       []Organization `json:"organizations"`
	Repositories        []string       `json:"repositories,omitempty"`
	ExcludeBranches     []string       `json:"exclude_branches,omitempty"`      // Regex patterns for branches to exclude
	WorkDir             string         `json:"work_dir,omitempty"`              // Working directory for cloning repositories
	ExcludeFromShowcase []string       `json:"exclude_from_showcase,omitempty"` // Repository names to exclude from showcase
	// SkipReleases maps a repository name to a list of tag names for which
	// releases should NOT be created on any platform (GitHub/Codeberg)
	SkipReleases map[string][]string `json:"skip_releases,omitempty"`
}
    Config holds the application configuration
func (*Config) FindCodebergOrg ¶
func (c *Config) FindCodebergOrg() *Organization
FindCodebergOrg finds the first Codeberg organization
func (*Config) FindGitHubOrg ¶
func (c *Config) FindGitHubOrg() *Organization
FindGitHubOrg finds the first GitHub organization
func (*Config) FindOrganization ¶
func (c *Config) FindOrganization(host string) *Organization
FindOrganization finds an organization by host
func (*Config) ShouldSkipRelease ¶ added in v0.8.7
ShouldSkipRelease returns true if the configuration specifies that the given repo/tag combination should not have a release created.
type Organization ¶
type Organization struct {
	Host           string `json:"host"`
	Name           string `json:"name"`
	GitHubToken    string `json:"github_token,omitempty"`
	CodebergToken  string `json:"codeberg_token,omitempty"`
	BackupLocation bool   `json:"backupLocation,omitempty"` // Mark this as a backup-only destination
}
    Organization represents a git organization with its host and name
func (*Organization) GetGitURL ¶
func (o *Organization) GetGitURL() string
GetGitURL returns the git URL for an organization
func (*Organization) IsCodeberg ¶
func (o *Organization) IsCodeberg() bool
IsCodeberg checks if the organization is Codeberg
func (*Organization) IsGitHub ¶
func (o *Organization) IsGitHub() bool
IsGitHub checks if the organization is GitHub
func (*Organization) IsSSH ¶
func (o *Organization) IsSSH() bool
IsSSH checks if the organization is a plain SSH location
 Click to show internal directories. 
   Click to hide internal directories.