From 96f11f64f4ed7bc874290ca029fe4f4b7550fdd0 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Sun, 4 Sep 2022 00:10:07 +0200 Subject: [PATCH] Add StateReason when closing issues See https://github.com/google/go-github/pull/2395 --- bot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.go b/bot.go index 11e5278..21137c9 100644 --- a/bot.go +++ b/bot.go @@ -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)