MCPcopy Index your code
hub / github.com/1Password/for-open-source / IssueHasLabel

Method IssueHasLabel

script/github.go:101–109  ·  view source on GitHub ↗
(label string)

Source from the content-addressed store, hash-verified

99}
100
101func (g *GitHub) IssueHasLabel(label string) bool {
102 for _, entry := range g.Issue.Labels {
103 if label == *entry.Name {
104 return true
105 }
106 }
107
108 return false
109}
110
111func (g *GitHub) AddIssueLabel(label string) error {
112 if isTesting() {

Callers 2

ApproveMethod · 0.80
getStatusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected