github

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubProvider

type GitHubProvider struct{}

GitHubProvider implements the sync.Provider interface for GitHub.

func NewProvider

func NewProvider() *GitHubProvider

NewProvider creates a new GitHubProvider.

func (*GitHubProvider) AddComment

func (p *GitHubProvider) AddComment(itemType, itemID, body, repoPath string) error

AddComment posts a new comment to a GitHub issue or pull request.

func (*GitHubProvider) CreateItem

func (p *GitHubProvider) CreateItem(item *sync.Item, repoPath string) (*sync.Item, error)

CreateItem creates a new issue or pull request on GitHub.

func (*GitHubProvider) GetItem

func (p *GitHubProvider) GetItem(itemType, itemID, repoPath string) (*sync.Item, error)

GetItem fetches a single item from GitHub.

func (*GitHubProvider) Name

func (p *GitHubProvider) Name() string

Name returns the name of the provider.

func (*GitHubProvider) Sync

func (p *GitHubProvider) Sync(config map[string]string, repoPath string) ([]*sync.Item, error)

Sync fetches issues and pull requests from a GitHub repository.

func (*GitHubProvider) UpdateItem

func (p *GitHubProvider) UpdateItem(item *sync.Item, repoPath string) (*sync.Item, error)

UpdateItem pushes changes for a single item to GitHub.

Jump to

Keyboard shortcuts

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