NewIssueClosed
Doesn't suport issue reopen yet
Signed-off-by: Seongmin Lee git@boltless.me
Failed to calculate interdiff for this file.
··· 305 rp.pages.Notice(w, "issue-action", "Failed to close issue. Try again later.") 306 return 307 } 0 0 308 309 // notify about the issue closure 310 rp.notifier.NewIssueClosed(r.Context(), issue) ··· 353 rp.pages.Notice(w, "issue-action", "Failed to reopen issue. Try again later.") 354 return 355 } 0 0 0 0 0 0 356 rp.pages.HxLocation(w, fmt.Sprintf("/%s/issues/%d", f.OwnerSlashRepo(), issue.IssueId)) 357 return 358 } else {
··· 305 rp.pages.Notice(w, "issue-action", "Failed to close issue. Try again later.") 306 return 307 } 308 + // change the issue state (this will pass down to the notifiers) 309 + issue.Open = false 310 311 // notify about the issue closure 312 rp.notifier.NewIssueClosed(r.Context(), issue) ··· 355 rp.pages.Notice(w, "issue-action", "Failed to reopen issue. Try again later.") 356 return 357 } 358 + // notify about the issue closure 359 + issue.Open = true 360 + 361 + // // notify about the issue reopen 362 + // rp.notifier.NewIssueReopen(r.Context(), issue) 363 + 364 rp.pages.HxLocation(w, fmt.Sprintf("/%s/issues/%d", f.OwnerSlashRepo(), issue.IssueId)) 365 return 366 } else {