From 36a59d088eca61b834191dacea009677a96c052f Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 19 May 2022 07:33:21 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-0-stable-ee --- lib/api/notes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api/notes.rb') diff --git a/lib/api/notes.rb b/lib/api/notes.rb index c12b3bf5562..2a854bd785e 100644 --- a/lib/api/notes.rb +++ b/lib/api/notes.rb @@ -94,7 +94,7 @@ module API note = create_note(noteable, opts) - if note.errors.attribute_names == [:commands_only] + if note.errors.attribute_names == [:commands_only, :command_names] status 202 present note, with: Entities::NoteCommands elsif note.valid? -- cgit v1.2.1