diff --git a/packages/conventional-gitlab-releaser/src/index.js b/packages/conventional-gitlab-releaser/src/index.js index 19059569..64d75de5 100644 --- a/packages/conventional-gitlab-releaser/src/index.js +++ b/packages/conventional-gitlab-releaser/src/index.js @@ -73,14 +73,11 @@ function conventionalGitlabReleaser (auth, changelogOpts, context, gitRawCommits return } - const url = `projects/${escape(context.owner + `/` + context.repository)}/repository/tags` + const url = `/projects/${escape(context.owner + `/` + context.repository)}/repository/tags/${chunk.keyCommit.version}/release` const options = { endpoint: auth.url, body: { - tag_name: chunk.keyCommit.version, - ref: chunk.keyCommit.hash, - message: 'Release ' + chunk.keyCommit.version, - release_description: chunk.log + description: chunk.log } } debug(`posting %o to the following URL - ${url}`, options)