Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Changes ¶
type Changes struct { Repository struct { Name struct { From string `json:"from"` } `json:"name"` } `json:"repository"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) FetchTeams ¶
type Config ¶
type Config struct { ExternalContributorsChannel string `yaml:"externalContributorsChannel"` Workflows Workflows `yaml:"workflows"` SilenceDependabot DependabotConfig `yaml:"silenceDependabot"` IgnoreRepositories []string `yaml:"ignoreRepositories"` }
func (Config) ShouldSilenceDependabot ¶
type DependabotConfig ¶
type DependabotConfig string
const (
DependabotConfigAlways DependabotConfig = "always"
)
type Event ¶
type Event struct { Action string `json:"action"` Ref string `json:"ref"` After string `json:"after"` Repository Repository `json:"repository"` Changes Changes `json:"changes"` Commits []Commit `json:"commits"` Compare string `json:"compare"` Issue *Issue `json:"issue"` PullRequest *Issue `json:"pull_request"` RepositoriesRemoved []Repository `json:"repositories_removed"` Sender User `json:"sender"` Team *TeamEvent `json:"team"` Workflow *Workflow `json:"workflow_run"` }
func CreateEvent ¶
func (Event) FindRepositoryName ¶
func (Event) IsFromDependabot ¶
IsFromDependabot checks if the event is from Dependabot
type Issue ¶
type Issue struct { Action string `json:"action"` Draft bool `json:"draft"` ID int `json:"id"` URL string `json:"html_url"` Title string `json:"title"` Body string `json:"body"` Number int `json:"number"` State string `json:"state"` StateReason string `json:"state_reason"` Merged bool `json:"merged"` User User `json:"user"` }
Issue is a struct for issues and pull requests Every pull request is an issue, but not every issue is a pull request
type Repository ¶
type Repository struct { Name string `json:"name"` FullName string `json:"full_name"` URL string `json:"html_url"` DefaultBranch string `json:"default_branch"` RoleName string `json:"role_name"` }
func (Repository) ToSlack ¶
func (r Repository) ToSlack() string
ToSlack returns a formatted string for Slack If the URL is empty, it returns the repository name If the URL is not empty, it returns <URL|Name>
type SlackChannels ¶
type Team ¶
type Team struct { Name string Repositories []string Members []User SlackChannels SlackChannels `yaml:",inline"` Config Config `yaml:"config"` }
func (*Team) AddRepository ¶
func (*Team) IsExternalContributor ¶
IsExternalContributor checks if a user is an external contributor to the team. Bot users are not considered external contributors.
func (*Team) RemoveRepository ¶
type User ¶
type Workflow ¶
type Workflow struct { Name string `json:"name"` HeadBranch string `json:"head_branch"` HeadSHA string `json:"head_sha"` Status string `json:"status"` Conclusion string `json:"conclusion"` Title string `json:"display_title"` RunNumber int `json:"run_number"` URL string `json:"html_url"` JobsURL string `json:"jobs_url"` FailedJob FailedJob }
func (*Workflow) UpdateFailedJob ¶
Click to show internal directories.
Click to hide internal directories.