MCPcopy Index your code
hub / github.com/bytebase/bytebase / NewIssue

Function NewIssue

backend/component/webhook/event.go:21–34  ·  view source on GitHub ↗
(i *store.IssueMessage)

Source from the content-addressed store, hash-verified

19}
20
21func NewIssue(i *store.IssueMessage) *Issue {
22 if i == nil {
23 return nil
24 }
25 return &Issue{
26 UID: i.UID,
27 Status: i.Status.String(),
28 Type: i.Type.String(),
29 Title: i.Title,
30 Description: i.Description,
31 CreatorEmail: i.CreatorEmail,
32 Approval: i.Payload.GetApproval(),
33 }
34}
35
36func NewProject(p *store.ProjectMessage) *Project {
37 return &Project{

Callers 5

NotifyApprovalRequestedFunction · 0.92
NotifyIssueApprovedFunction · 0.92
postCreateIssueFunction · 0.92
RejectIssueMethod · 0.92
TestNewIssueFunction · 0.85

Calls 2

StringMethod · 0.65
GetApprovalMethod · 0.45

Tested by 1

TestNewIssueFunction · 0.68