Skip to content

Add state events to merge request update mutation

What does this MR do?

This adds the ability to open and close MRs from GraphQL.

GraphQL examples

mutation {
  closing: mergeRequestUpdate(input: { projectPath: "gitlab-org/gitlab", iid: "11234", state: CLOSED }) {
    mergeRequest { state }
    errors
  }
  opening: mergeRequestUpdate(input: { projectPath: "gitlab-org/gitlab", iid: "11235", state: OPEN }) {
    mergeRequest { state }
    errors
  }
}

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Alex Kalderimis

Merge request reports

Loading