MCPcopy
hub / github.com/1Password/for-open-source / getStatus

Method getStatus

script/reviewer.go:43–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func (r *Reviewer) getStatus() Status {
44 if r.gitHub.IssueHasLabel(LabelStatusApproved) {
45 return Approved
46 } else if r.gitHub.IssueHasLabel(LabelStatusReviewing) {
47 return Reviewing
48 } else if r.gitHub.IssueHasLabel(LabelStatusInvalid) {
49 return Invalid
50 } else {
51 return New
52 }
53}
54
55func (r *Reviewer) createComment(status Status, isClosed bool, issueAuthor string) {
56 title := ""

Callers 1

ReviewMethod · 0.95

Calls 1

IssueHasLabelMethod · 0.80

Tested by

no test coverage detected