Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeIssue = "Issue" TypePullRequest = "PullRequest" DefaultDaysThreshold = 30 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationsCleaner ¶
NotificationsCleaner defines the cleaner struct.
func NewNotificationsCleaner ¶
func NewNotificationsCleaner(opts ...Option) *NotificationsCleaner
NewNotificationsCleaner creates a new NotificationsCleaner instance with the provided options. It initializes with a default GitHubClient.
type Option ¶
type Option func(*NotificationsCleaner)
Option defines a functional option for NotificationsCleaner.
func WithDryRun ¶
WithDryRun is an option to enable dry-run mode.
func WithGitHubClient ¶
WithGitHubClient is an option to set a custom GitHub client.
func WithOlderThanDays ¶
WithOlderThanDays is an option to set the age threshold (in days) for cleaning notifications.
Click to show internal directories.
Click to hide internal directories.