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

Update migrate.js #5

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

Conversation

GameKyuubi
Copy link

internal is deprecated

internal is deprecated
@michaelficarra
Copy link
Member

It doesn't seem to be marked as deprecated in the documentation: https://docs.gitlab.com/ee/api/snippets.html#snippet-visibility-level

@GameKyuubi
Copy link
Author

GameKyuubi commented Oct 14, 2023

https://gitlab.com/gitlab-org/gitlab/-/issues/12388

Deprecated was the wrong word. It's disabled for both projects and snippets at gitlab.com, so if the script uses it for gitlab.com it produces an error. My fix is naive, optimally it should check if the gitlab host has it enabled or not?

@michaelficarra
Copy link
Member

Yes, checking whether it is enabled seems like the right thing to do. In the interim, as an easy fix, we could also just special-case gitlab.com. I'd accept either of those changes.

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.

2 participants