Documentation ¶
Index ¶
- type Synchronize
- func (sc *Synchronize) HandleSyncIssueComment(org, repo string, e *sdk.NoteEvent, cfg *config.BotConfig) error
- func (sc *Synchronize) HandleSyncIssueStatus(org, repo string, issue *sdk.IssueHook, cfg *config.BotConfig) error
- func (sc *Synchronize) HandleSyncIssueToGitHub(org, repo string, e *sdk.IssueHook, cfg *config.BotConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Synchronize ¶
type Synchronize struct { utils.HttpClient // Endpoint the root path of the request Endpoint *url.URL // contains filtered or unexported fields }
Synchronize the sync calling the sync service
func NewSynchronize ¶
func NewSynchronize(syncSrvAddr, ak, sk, reg string, gc giteeCli, synchronizer string) (Synchronize, error)
func (*Synchronize) HandleSyncIssueComment ¶
func (sc *Synchronize) HandleSyncIssueComment(org, repo string, e *sdk.NoteEvent, cfg *config.BotConfig) error
HandleSyncIssueComment synchronize the comments of the gitee platform Issue to the Github platform
func (*Synchronize) HandleSyncIssueStatus ¶
func (*Synchronize) HandleSyncIssueToGitHub ¶
func (sc *Synchronize) HandleSyncIssueToGitHub(org, repo string, e *sdk.IssueHook, cfg *config.BotConfig) error
HandleSyncIssueToGitHub synchronize the Issue of the gitee platform to the Github platform
Click to show internal directories.
Click to hide internal directories.