Documentation
¶
Overview ¶
adapter.go - GitHub source adapter using gh CLI
discussions.go - Fetch GitHub Discussions via GraphQL for social import
issues.go - Fetch GitHub milestones and issues via gh CLI
pulls.go - Fetch GitHub pull requests via gh CLI
releases.go - Fetch GitHub releases via gh API
Index ¶
- func CheckGH() error
- type Adapter
- func (a *Adapter) CountItems(opts importpkg.FetchOptions) (importpkg.ItemCounts, error)
- func (a *Adapter) FetchPM(opts importpkg.FetchOptions) (*importpkg.PMPlan, error)
- func (a *Adapter) FetchReleases(opts importpkg.FetchOptions) (*importpkg.ReleasePlan, error)
- func (a *Adapter) FetchReview(opts importpkg.FetchOptions) (*importpkg.ReviewPlan, error)
- func (a *Adapter) FetchSocial(opts importpkg.FetchOptions) (*importpkg.SocialPlan, error)
- func (a *Adapter) Platform() string
- func (a *Adapter) SetUserEmails(emails map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter implements SourceAdapter for GitHub repositories.
func (*Adapter) CountItems ¶
func (a *Adapter) CountItems(opts importpkg.FetchOptions) (importpkg.ItemCounts, error)
CountItems returns exact totals for each importable type via GraphQL + REST.
func (*Adapter) FetchReleases ¶
func (a *Adapter) FetchReleases(opts importpkg.FetchOptions) (*importpkg.ReleasePlan, error)
FetchReleases fetches releases from GitHub using the REST API.
func (*Adapter) FetchReview ¶
func (a *Adapter) FetchReview(opts importpkg.FetchOptions) (*importpkg.ReviewPlan, error)
FetchReview fetches pull requests from GitHub, detecting forks.
func (*Adapter) FetchSocial ¶
func (a *Adapter) FetchSocial(opts importpkg.FetchOptions) (*importpkg.SocialPlan, error)
FetchSocial fetches GitHub Discussions as social posts with comments.
func (*Adapter) SetUserEmails ¶
SetUserEmails sets email overrides for logins (highest priority in resolveUser).