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 for https://gitlab.com/gitlab-org/gitlab/-/issues/290311 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eliaperantoni
Copy link

@eliaperantoni eliaperantoni commented Jun 14, 2021

Lately this script stopped working. The request that creates the release returns 400 with this text:

{
    "message":"Release notes modification via tags API is deprecated, see https://gitlab.com/gitlab-org/gitlab/-/issues/290311"
}

There was some change in the GitLab API that deprecated the creation/updation of releases by using the tag endpoint. The old method eventually stopped working.

You can read more about that here:
https://gitlab.com/gitlab-org/gitlab/-/issues/290311

This PR provides a fix that makes the script work with the new API that can be found here:
https://docs.gitlab.com/ee/api/releases/#create-a-release
https://docs.gitlab.com/ee/api/releases/#update-a-release

In the meantime, if anyone needs to get it working quickly you can use this container:
https://hub.docker.com/repository/docker/hex08/gitlab-release

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.

1 participant