Fetch before Merge and push the squash commit to origin
This commit is contained in:
@@ -452,8 +452,8 @@ func (s *Store) SetMergeTitle(ctx context.Context, id, title, actor string) erro
|
||||
})
|
||||
}
|
||||
|
||||
func (s *Store) MergeTask(ctx context.Context, id, commit, actor string) (api.Task, error) {
|
||||
return s.closeTask(ctx, id, api.TaskStatusMerged, commit, actor, "task.merged", map[string]any{"id": id, "commit": commit})
|
||||
func (s *Store) MergeTask(ctx context.Context, id, commit, pushed, actor string) (api.Task, error) {
|
||||
return s.closeTask(ctx, id, api.TaskStatusMerged, commit, actor, "task.merged", map[string]any{"id": id, "commit": commit, "pushed": pushed})
|
||||
}
|
||||
|
||||
func (s *Store) DiscardTask(ctx context.Context, id, actor string) (api.Task, error) {
|
||||
|
||||
Reference in New Issue
Block a user