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

Method AddIssueLabel

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

Source from the content-addressed store, hash-verified

109}
110
111func (g *GitHub) AddIssueLabel(label string) error {
112 if isTesting() {
113 debugMessage(fmt.Sprintf("Adding label \"%s\"", label))
114 return nil
115 }
116
117 _, _, err := g.Client.Issues.AddLabelsToIssue(
118 context.Background(),
119 g.RepoOwner,
120 g.RepoName,
121 *g.Issue.Number,
122 []string{label},
123 )
124
125 return err
126}
127
128func (g *GitHub) RemoveIssueLabel(label string) error {
129 if isTesting() {

Callers 1

updateLabelsMethod · 0.80

Calls 2

isTestingFunction · 0.85
debugMessageFunction · 0.85

Tested by

no test coverage detected