Skip to content

Allow creation of annotated tags with the GraphQL Release API

Alishan Ladhani requested to merge ali/create-release-with-annotated-tag into master

What does this MR do and why?

Allow creation of annotated tags with the GraphQL Release API.

Related to #268267 (closed)

Screenshots or screen recordings

Screen_Shot_2022-05-16_at_3.31.08_PM

How to set up and validate locally

  1. Navigate to GraphQL Explorer: http://localhost:3000/-/graphql-explorer

  2. Run the following mutations

mutation {
  releaseCreate(
    input: {projectPath: "namespace/project_name", tagName: "v0.0.1", ref: "149d6065"}
  ) {
    release {
      name
      tagName
    }
  }
}
mutation {
  releaseCreate(
    input: {projectPath: "namespace/project_name", tagName: "v0.0.2", tagMessage: "Annotated tag message", ref: "b4f1d4af"}
  ) {
    release {
      name
      tagName
    }
  }
}
  1. Verify that two releases were created: http://localhost:3000/namespace/project_name/-/releases

  2. Verify that a lightweight tag was created for v0.0.1 and an annotated tag was created for v0.0.2: http://localhost:3000/namespace/project_name/-/tags

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 Alishan Ladhani

Merge request reports