Skip to content

Commit

Permalink
Add StateReason when closing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
orestisfl committed Sep 3, 2022
1 parent 0b91191 commit 96f11f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot.go
Expand Up @@ -272,6 +272,7 @@ func closeIssue(ctx context.Context, client *github.Client, payload interface{},
*issue.Number,
&github.IssueRequest{
State: github.String("closed"),
StateReason: github.String("not_planned"),
})
if err != nil {
http.Error(w, fmt.Sprintf("Edit: %v", err), http.StatusInternalServerError)
Expand Down

0 comments on commit 96f11f6

Please sign in to comment.