How to understand "owner" tag in repo xml - repo

I get a repo xml but don't fully understand it.how could I understand "owner" tag in repo xml?
I try to google some answers but failed.enter image description here

Related

How Do I Query GitLab (issues, milestones, etc) from within a GitLab Pipeline

Problem Summary
I am creating my first GitLab pipeline and setting it up to do a release. I would like to add a change log to the published release information. (found in Deployments -> Releases in the GitLab UI).
I would like to, from the pipeline, query the project for something like "closed issues since the date of the last release" and add those tickets to the published release.
Planned Approach
I am successfully using the "release-cli" tool from GitLab to create the release. I followed the example: "Create release metadata in custom script" on this page.
I found the description tag in the release element can be given a .md file, which seemed perfect for posting my change log. I have made a test .md file and added it as the release description and it looks great. It shows up right under "Evidence Collection" and so I planned to do "Change Log" as the header in my .md file. In the above example, GitLab is clearly using an .md file in their description element for extra information such as this.
Where I'm Stuck
I just can't figure out how to query the gitlab project from the pipeline (for issues or whatever).
I have been looking at GitLab's cli project and see likely has all the tools I need. I can not find any examples of using it in a pipeline. I cannot find for sure that its in a docker image that I can use similar to the release-cli tool.
I am stuck. The lack of information makes me wonder if I'm going down a dead end path. Is there anybody that has done something similar that can give me a basic example? Or an alternative?

How can we get Project ID programmatically for GitLab projects associated with the circleci account

For the three vcs supported by circleci, we have observed that for GitHub and BitBucket we are able to access all the endpoints through Postman where the project sulg in the URL is prepared with the "Project Name". Whereas in case of GitLab, the project slug takes "Project ID" instead of the "Project Name" and we could not find the GitLab "Project ID" programmatically through circleci endpoints.
Please help us if there is any way we can get the GitLab Project ID programmatically.
We tried the Organization Summary Metric endpoints but could not find the Project ID in the response.
Whereas in case of GitLab, the project slug takes "Project ID" instead of the "Project Name" [...]
It's a project identifier rather than the actual project ID; the project identifier can be seen in the URL of the pipelines page for a given project, along with the organization identifier (this one too is different from the actual organization ID).
For example, if you go to the pipelines page of a specific GitLab-based CircleCI project, you'll see the URL has the following format:
https://app.circleci.com/pipelines/circleci/<organization_identifier>/<project_identifier>
In your API calls related to GitLab projects, you can still use a that follows the format <vcs>/<org>/<project>. The difference with GitHub/Bitbucket orgs/projects is that for GitLab:
<vcs> is always circleci
<org> is the organization identifier, rather than an actual name
<project> is the project identifier rather than the actual repository name
I found that for some API endpoints, you can replace the whole project slug circleci/<organization_identifier>/<project_identifier> with the actual project ID (i.e, the one you find in the overview section of the project settings)
So for example:
https://circleci.com/api/v2/project/<project_ID>
and
https://circleci.com/api/v2/project/circleci/<organization_identifier>/<project_identifier>
will yield the same output.
Not knowing what your end goal is, I can't provide more specific suggestions. But if you explain in details what you're ultimately trying to achieve, I can try to help.
Edit:
I found out there is an undocumented endpoint you could use to retrieve the projects respective slugs: https://circleci.com/api/private/project?organization-id=your_org_id.
You can the use those project slugs with any project-related API endpoints.

How do I get all files (paths) of a specific commit from gitlab api?

I want to load the file contents from the gitlab api using a specific tag.
This can be achieved by using the blob for each file (https://docs.gitlab.com/ee/api/repository_files.html).
The problem I am facing is that I do not see the way to find out what file paths are available for a given commit (a tag in my case).
I am looking for something similar to github's tree object.
How do I get all the files and their respective paths with a given commit hash from the gitlab api to load their contents?
Thanks :)
You can get a list of repository files and directories in a project by calling this API:
GET /projects/:id/repository/tree
See here for more information such as optional parameters.

How do I successfully create gitlab tags

When I trying to create tags for my project on gitlab
it shows,
notice: successful!
But I can't find tags. My account is the owner of my project.
I don't know why this is happening.
My gitlab is running,looks like well done.
You can find them under https://gitlab_instance/namespace/project/tags or Repository > Tags.

GitLab: How to embed image from repo in the wiki?

I have a GitLab repository with documentation in the attached wiki (i.e. NOT in the repo itself) and an image file inside the repository itself that I want to embed in wiki pages.
How can this be done?
From a wiki page, I can successfully link to the image using
[[../tree/master/pathto/myimage.jpg]] or [[../raw/master/pathto/myimage.jpg]] but
![](../raw/master/pathto/myimage.jpg)
doesn't seem to work.
(GitLab Community Edition 10.0.3)
Embedding using the absolute path to the repo and image worked:
![](https://url.of.my.repo/raw/master/pathto/myimage.jpg)
Use the 'Attach a file' button from the wiki page:
It is a triggy operation but sometimes it works :) and you find your attached image:

Resources