| 39 | } |
| 40 | |
| 41 | type Application struct { |
| 42 | validator Validator `json:"-"` |
| 43 | sections map[string]string `json:"-"` |
| 44 | Problems []error `json:"-"` |
| 45 | |
| 46 | Account string `json:"account"` |
| 47 | Project Project `json:"project"` |
| 48 | Applicant Applicant `json:"applicant"` |
| 49 | CanContact bool `json:"can_contact"` |
| 50 | ApproverId int `json:"approver_id,omitempty"` |
| 51 | ApproverUsername string `json:"-"` |
| 52 | IssueNumber int `json:"issue_number"` |
| 53 | CreatedAt time.Time `json:"created_at"` |
| 54 | } |
| 55 | |
| 56 | func (a *Application) Parse(issue *github.Issue) { |
| 57 | a.validator = Validator{} |
nothing calls this directly
no outgoing calls
no test coverage detected