aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>2023-09-13 12:43:31 +0800
committerGitHub <noreply@github.com>2023-09-13 04:43:31 +0000
commitcda97a725347cdadd43af812749732b9d1ee6429 (patch)
tree133cde4ac79c539803e2262faff2c6e1ad0659fd /models
parente6a059a3d0c699e00c05cfa81ab3bfd0598a89a2 (diff)
downloadgitea-cda97a725347cdadd43af812749732b9d1ee6429.tar.gz
gitea-cda97a725347cdadd43af812749732b9d1ee6429.zip
Update status and code index after changing the default branch (#27018)
Fix #26723 Add `ChangeDefaultBranch` to the `notifier` interface and implement it in `indexerNotifier`. So when changing the default branch, `indexerNotifier` sends a message to the `indexer queue` to update the index. --------- Co-authored-by: techknowlogick <matti@mdranta.net>
Diffstat (limited to 'models')
-rw-r--r--models/repo/git.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/repo/git.go b/models/repo/git.go
index c1af7ee960..2f71128b5a 100644
--- a/models/repo/git.go
+++ b/models/repo/git.go
@@ -3,7 +3,9 @@
package repo
-import "code.gitea.io/gitea/models/db"
+import (
+ "code.gitea.io/gitea/models/db"
+)
// MergeStyle represents the approach to merge commits into base branch.
type MergeStyle string