Versions in this module Expand all Collapse all v0 v0.62.1 Mar 13, 2026 v0.62.0 Mar 13, 2026 Changes in this version + const DefaultBaseURL + const DefaultTimeout + const MaxPages + const MaxPerPage + const MaxRetries + const RetryDelay + var PriorityMapping = map[string]int + var StatusMapping = map[string]string + func BeadsIssueToGitHubFields(issue *types.Issue, config *MappingConfig) map[string]interface + type Client struct + BaseURL string + HTTPClient *http.Client + Owner string + Repo string + Token string + func NewClient(token, owner, repo string) *Client + func (c *Client) AddLabels(ctx context.Context, number int, labels []string) error + func (c *Client) CreateIssue(ctx context.Context, title, body string, labels []string) (*Issue, error) + func (c *Client) FetchIssueByNumber(ctx context.Context, number int) (*Issue, error) + func (c *Client) FetchIssues(ctx context.Context, state string) ([]Issue, error) + func (c *Client) FetchIssuesSince(ctx context.Context, state string, since time.Time) ([]Issue, error) + func (c *Client) GetAuthenticatedUser(ctx context.Context) (*User, error) + func (c *Client) ListRepositories(ctx context.Context) ([]Repository, error) + func (c *Client) RemoveLabel(ctx context.Context, number int, label string) error + func (c *Client) UpdateIssue(ctx context.Context, number int, updates map[string]interface{}) (*Issue, error) + func (c *Client) WithBaseURL(baseURL string) *Client + func (c *Client) WithHTTPClient(httpClient *http.Client) *Client + type Conflict struct + GitHubExternalRef string + GitHubID int + GitHubNumber int + GitHubUpdated time.Time + IssueID string + LocalUpdated time.Time + type DependencyInfo struct + FromGitHubNumber int + ToGitHubNumber int + Type string + type Issue struct + Assignee *User + Assignees []User + Body string + ClosedAt *time.Time + CreatedAt *time.Time + HTMLURL string + ID int + Labels []Label + Locked bool + Milestone *Milestone + Number int + PullRequest *PullRequestRef + State string + Title string + UpdatedAt *time.Time + User *User + func (i *Issue) IsPullRequest() bool + func (i *Issue) LabelNames() []string + type IssueConversion struct + Dependencies []DependencyInfo + Issue *types.Issue + func GitHubIssueToBeads(gh *Issue, config *MappingConfig) *IssueConversion + type Label struct + Color string + Default bool + Description string + ID int + Name string + type MappingConfig struct + LabelTypeMap map[string]string + PriorityMap map[string]int + StateMap map[string]string + func DefaultMappingConfig() *MappingConfig + type Milestone struct + CreatedAt *time.Time + Description string + DueOn *time.Time + HTMLURL string + ID int + Number int + State string + Title string + UpdatedAt *time.Time + type PullRequestRef struct + URL string + type PullStats struct + Created int + Incremental bool + Skipped int + SyncedSince string + Updated int + Warnings []string + type PushStats struct + Created int + Errors int + Skipped int + Updated int + type Repository struct + DefaultBranch string + Description string + FullName string + HTMLURL string + ID int + Name string + Owner *User + Private bool + type SyncResult struct + Error string + LastSync string + Stats SyncStats + Success bool + Warnings []string + type SyncStats struct + Conflicts int + Created int + Errors int + Pulled int + Pushed int + Skipped int + Updated int + type Tracker struct + func (t *Tracker) BuildExternalRef(issue *tracker.TrackerIssue) string + func (t *Tracker) Close() error + func (t *Tracker) ConfigPrefix() string + func (t *Tracker) CreateIssue(ctx context.Context, issue *types.Issue) (*tracker.TrackerIssue, error) + func (t *Tracker) DisplayName() string + func (t *Tracker) ExtractIdentifier(ref string) string + func (t *Tracker) FetchIssue(ctx context.Context, identifier string) (*tracker.TrackerIssue, error) + func (t *Tracker) FetchIssues(ctx context.Context, opts tracker.FetchOptions) ([]tracker.TrackerIssue, error) + func (t *Tracker) FieldMapper() tracker.FieldMapper + func (t *Tracker) Init(ctx context.Context, store storage.Storage) error + func (t *Tracker) IsExternalRef(ref string) bool + func (t *Tracker) Name() string + func (t *Tracker) UpdateIssue(ctx context.Context, externalID string, issue *types.Issue) (*tracker.TrackerIssue, error) + func (t *Tracker) Validate() error + type User struct + AvatarURL string + Email string + HTMLURL string + ID int + Login string + Name string + Type string