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

Method CloseIssue

script/github.go:145–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143}
144
145func (g *GitHub) CloseIssue() error {
146 if isTesting() {
147 debugMessage("Closing issue")
148 return nil
149 }
150
151 _, _, err := g.Client.Issues.Edit(
152 context.Background(),
153 g.RepoOwner,
154 g.RepoName,
155 *g.Issue.Number,
156 &github.IssueRequest{
157 State: github.String("closed"),
158 },
159 )
160
161 return err
162}
163
164func (g *GitHub) commitFile(filePath string, content []byte, message string, update bool) error {
165 commitBranch := "main"

Callers 1

ApproveMethod · 0.80

Calls 2

isTestingFunction · 0.85
debugMessageFunction · 0.85

Tested by

no test coverage detected