GraphQL Mutation: Approve or Reject Deployment
Problem
Related to this comment, frontend needs GraphQL Mutation for approving or rejecting deployment.
Proposal
Add a graphql mutation to approve or reject an deployment:
mutation {
approveDeployment(input: { deploymentId: "gid://gitlab/Deployment/1", status: "APPROVED or REJECTED", comment: "" }) {
errors
}
}
It works same with https://docs.gitlab.com/ee/api/deployments.html#approve-or-reject-a-blocked-deployment.