issue

package
v0.0.0-...-6a546ba Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instance *eventHandler

Functions

func InitCommitterInstance

func InitCommitterInstance()

func InitEventHandler

func InitEventHandler(c *Config, s app.DefectService) error

Types

type Config

type Config struct {
	RobotToken      string   `json:"robot_token"      required:"true"`
	IssueType       string   `json:"issue_type"       required:"true"`
	MaintainVersion []string `json:"maintain_version" required:"true"`
}

type EventHandler

type EventHandler interface {
	HandleIssueEvent(e *sdk.IssueEvent) error
	HandleNoteEvent(e *sdk.NoteEvent) error
}

type ResCommitter

type ResCommitter struct {
	Data struct {
		Maintainers      []string `json:"maintainers"`
		CommitterDetails []struct {
			GiteeId []string `json:"gitee_id"`
			Repo    string   `json:"repo"`
		} `json:"committerDetails"`
	} `json:"data"`
}

type ResContent

type ResContent struct {
	Type string `json:"type"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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