Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pipeline): Add name parameter to avoid 400 error #261

Closed
wants to merge 1 commit into from

Conversation

renatocassino
Copy link

This PR is related with this issue.

#192

The Gitlab api is returning error when make a request. The status code is 400 and the error is:

{"error":"name is missing"}

@merlosy
Copy link

merlosy commented Mar 31, 2022

This plugin doesn' work anymore without the "name" for all newer version of Gitlab.

@@ -88,6 +88,7 @@ module.exports = async (pluginConfig, context) => {
const json = {
/* eslint-disable camelcase */
tag_name: gitTag,
name: `Bump tag: ${gitTag}`,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name could optionally be resolved by the plugin config so that:

  • if it is defined, the given value is set
  • if it is not defined, this value is assigned by default
    like:
name: pluginConfig.name || `Bump tag: ${gitTag}`,

Copy link

@merlosy merlosy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add possibility to define one's own name as plugin option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants