Add pipelineTriggersCreate GraphQL mutation

What does this MR do and why?

Part of #346054 (closed)

This MR adds a new mutation to CREATE a new pipelineTrigger.

Related MRs:

Screenshots or screen recordings

Screenshot_2023-07-13_at_3.42.04_PM

How to set up and validate locally

  1. Run gdk/gitpod server
  2. Visit http://127.0.0.1:3000/-/graphql-explorer and create a new pipelineTrigger using the below mutation
mutation {
  pipelineTriggerCreate(
    input: {projectPath: "gitlab-org/gitlab-shell", description: "This is my second new trigger!"}
  ) {
    pipelineTrigger {
      id
      description
      lastUsed
      owner {
        id
      }
      hasTokenExposed
      token
      canAccessProject 
    }
    errors
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Missy Davies

Merge request reports

Loading