Documentation
¶
Index ¶
- type GitHubProvider
- func (p *GitHubProvider) AddComment(itemType, itemID, body, repoPath string) error
- func (p *GitHubProvider) CreateItem(item *sync.Item, repoPath string) (*sync.Item, error)
- func (p *GitHubProvider) GetItem(itemType, itemID, repoPath string) (*sync.Item, error)
- func (p *GitHubProvider) Name() string
- func (p *GitHubProvider) Sync(config map[string]string, repoPath string) ([]*sync.Item, error)
- func (p *GitHubProvider) UpdateItem(item *sync.Item, repoPath string) (*sync.Item, error)
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 (*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 ¶
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) UpdateItem ¶
UpdateItem pushes changes for a single item to GitHub.
Click to show internal directories.
Click to hide internal directories.