Versions in this module Expand all Collapse all v1 v1.0.1 Aug 27, 2023 v1.0.0 Feb 18, 2022 Changes in this version + const DiscordWebhookRegex + type Author struct + Email string + Name string + Username string + type Commits struct + Added []interface{} + Author Author + Committer Committer + Distinct bool + ID string + Message string + Modified []string + Removed []interface{} + Timestamp time.Time + TreeID string + URL string + type Committer struct + Email string + Name string + Username string + type Config struct + Endpoint string + Listeners []Listener + Port string + type DiscordNotificationManager struct + NotifyBeforeRun bool + SendOutput bool + Session *discordgo.Session + Webhook DiscordWebhookData + func (m *DiscordNotificationManager) SendErrorMessage(listener *Listener, error *error, ghWebhook *GithubWebhook) error + func (m *DiscordNotificationManager) SendPreRunNotification(listener *Listener, ghWebhook *GithubWebhook) error + func (m *DiscordNotificationManager) SendSuccessMessage(listener *Listener, output *string, ghWebhook *GithubWebhook) error + func (m *DiscordNotificationManager) Setup() error + type DiscordWebhookData struct + Id string + Token string + Url string + type GithubWebhook struct + After string + BaseRef interface{} + Before string + Commits []Commits + Compare string + Created bool + Deleted bool + Forced bool + HeadCommit HeadCommit + Pusher Pusher + Ref string + Repository Repository + Sender Sender + type HeadCommit struct + Added []interface{} + Author Author + Committer Committer + Distinct bool + ID string + Message string + Modified []string + Removed []interface{} + Timestamp time.Time + TreeID string + URL string + type License struct + Key string + Name string + NodeID string + SpdxID string + URL string + type Listener struct + AllowedPushers []string + Branch string + Command string + Directory string + Discord struct{ ... } + Name string + NotifyDiscord bool + Repository string + Secret string + type Owner struct + AvatarURL string + Email string + EventsURL string + FollowersURL string + FollowingURL string + GistsURL string + GravatarID string + HTMLURL string + ID int + Login string + Name string + NodeID string + OrganizationsURL string + ReceivedEventsURL string + ReposURL string + SiteAdmin bool + StarredURL string + SubscriptionsURL string + Type string + URL string + type Pusher struct + Email string + Name string + type Repository struct + AllowForking bool + ArchiveURL string + Archived bool + AssigneesURL string + BlobsURL string + BranchesURL string + CloneURL string + CollaboratorsURL string + CommentsURL string + CommitsURL string + CompareURL string + ContentsURL string + ContributorsURL string + CreatedAt int + DefaultBranch string + DeploymentsURL string + Description string + Disabled bool + DownloadsURL string + EventsURL string + Fork bool + Forks int + ForksCount int + ForksURL string + FullName string + GitCommitsURL string + GitRefsURL string + GitTagsURL string + GitURL string + HTMLURL string + HasDownloads bool + HasIssues bool + HasPages bool + HasProjects bool + HasWiki bool + Homepage interface{} + HooksURL string + ID int + IsTemplate bool + IssueCommentURL string + IssueEventsURL string + IssuesURL string + KeysURL string + LabelsURL string + Language interface{} + LanguagesURL string + License License + MasterBranch string + MergesURL string + MilestonesURL string + MirrorURL interface{} + Name string + NodeID string + NotificationsURL string + OpenIssues int + OpenIssuesCount int + Owner Owner + Private bool + PullsURL string + PushedAt int + ReleasesURL string + SSHURL string + Size int + Stargazers int + StargazersCount int + StargazersURL string + StatusesURL string + SubscribersURL string + SubscriptionURL string + SvnURL string + TagsURL string + TeamsURL string + Topics []interface{} + TreesURL string + URL string + UpdatedAt time.Time + Visibility string + Watchers int + WatchersCount int + type Sender struct + AvatarURL string + EventsURL string + FollowersURL string + FollowingURL string + GistsURL string + GravatarID string + HTMLURL string + ID int + Login string + NodeID string + OrganizationsURL string + ReceivedEventsURL string + ReposURL string + SiteAdmin bool + StarredURL string + SubscriptionsURL string + Type string + URL string