github

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 9 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGH

func CheckGH() error

CheckGH verifies that gh CLI is installed and authenticated.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter implements SourceAdapter for GitHub repositories.

func New

func New(owner, repo string) *Adapter

New creates a GitHub adapter for the given owner/repo.

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) FetchPM

func (a *Adapter) FetchPM(opts importpkg.FetchOptions) (*importpkg.PMPlan, error)

FetchPM fetches milestones and issues from GitHub.

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) Platform

func (a *Adapter) Platform() string

Platform returns the platform identifier.

func (*Adapter) SetUserEmails

func (a *Adapter) SetUserEmails(emails map[string]string)

SetUserEmails sets email overrides for logins (highest priority in resolveUser).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL