Allow creation of annotated tags with the GraphQL Release API
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
How to set up and validate locally
-
Navigate to GraphQL Explorer: http://localhost:3000/-/graphql-explorer
-
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
}
}
}
-
Verify that two releases were created: http://localhost:3000/namespace/project_name/-/releases
-
Verify that a lightweight tag was created for
v0.0.1
and an annotated tag was created forv0.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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Alishan Ladhani