back interdiff of round #1 and #0

appview/notify: merge NewPullClosed/Merged/Reopen to NewPullState #711

merged
opened by boltless.me targeting master from boltless.me/core: feat/search

same to NewIssueState, we can determine the detailed event type from latest pull state

Signed-off-by: Seongmin Lee git@boltless.me

files
appview
ERROR
appview/indexer/notifier.go

Failed to calculate interdiff for this file.

ERROR
appview/notify/db/db.go

Failed to calculate interdiff for this file.

ERROR
appview/notify/merged_notifier.go

Failed to calculate interdiff for this file.

ERROR
appview/notify/notifier.go

Failed to calculate interdiff for this file.

ERROR
appview/notify/posthog/notifier.go

Failed to calculate interdiff for this file.

NEW
appview/pulls/pulls.go
··· 2216 2216 2217 2217 // notify about the pull merge 2218 2218 for _, p := range pullsToMerge { 2219 - s.notifier.NewPullMerged(r.Context(), p) 2219 + s.notifier.NewPullState(r.Context(), p) 2220 2220 } 2221 2221 2222 2222 s.pages.HxLocation(w, fmt.Sprintf("/@%s/%s/pulls/%d", f.OwnerHandle(), f.Name, pull.PullId)) ··· 2288 2288 } 2289 2289 2290 2290 for _, p := range pullsToClose { 2291 - s.notifier.NewPullClosed(r.Context(), p) 2291 + s.notifier.NewPullState(r.Context(), p) 2292 2292 } 2293 2293 2294 2294 s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", f.OwnerSlashRepo(), pull.PullId)) ··· 2361 2361 } 2362 2362 2363 2363 for _, p := range pullsToReopen { 2364 - s.notifier.NewPullReopen(r.Context(), p) 2364 + s.notifier.NewPullState(r.Context(), p) 2365 2365 } 2366 2366 2367 2367 s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", f.OwnerSlashRepo(), pull.PullId))