Skip to content
New issue

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

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

Already on GitHub? # to your account

Add NamespaceApi.getNamespace(idOrPath) using /namespaces/:id #1079

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Add NamespaceApi.getNamespace(idOrPath) using /namespaces/:id #1079

merged 2 commits into from
Feb 5, 2024

Conversation

ddoleye
Copy link
Contributor

@ddoleye ddoleye commented Jan 21, 2024

Just like GroupApi.getGroup(idOrPath) and ProjectApi.getProject(idOrPath),
getNamespace(idOrPath) method has been added to NamespaceApi as well.

See: https://docs.gitlab.com/ee/api/namespaces.html#get-namespace-by-id

@jmini
Copy link
Collaborator

jmini commented Feb 4, 2024

This looks like a good addition, but according to our branching model it should target main. See #926 (comment)

I will then cascade the change to 6.x.

@jmini jmini changed the base branch from 6.x to main February 4, 2024 14:12
@jmini
Copy link
Collaborator

jmini commented Feb 4, 2024

I have changed the target branch of this PR.

git rebase --onto origin/main origin/6.x
git push --force

Be aware that your local branch 6.x has diverged with the one on the GitHub.
If you need to do one more changes on this branch:
I recommend to use git fetch and git reset --hard origin/6.x before doing any local modifications instead of git pull.

@jmini jmini merged commit 0028d7e into gitlab4j:main Feb 5, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants