GitLab-Api displays some information from a GitLab project.
Compatible with DokuWiki
This plugis is an extended version of Gitlab-Project. All thanks to algorys.
Search and install the plugin using the Extension Manager.
The following values must be configured in the Configuration Manager:
server.json
file.server.json
file.<gitlab-api project-path="<NAMESPACE>/<SUB_DIRS>/<PROJECT_NAME>" />
For instance, if your project is available at http://gitlab.domain.com/ns/dir1/dir2/project
, then the syntax should be:
<gitlab-api project-path="ns/dir1/dir2/project" />
The plugin displays following information:
For instance, if you want to see the latest 3 milestones, 10 commits, 5 issues, and 10 pipelines, then the syntax will be:
<gitlab-api project-path="ns/dir/project" commits="10" issues="5" milestones="3" pipelines="10" />
There a JSON file server.json
inside the root of plugin. You can add or change the servers and their tokens.
For instance; you have a GitLab server namely gitlab.home
and following JSON file:
{ "gitlab.home": { "url": "http://192.168.0.10", "token": "aabbccddeeffgghh" } }
Then you can use server
parameter as follows:
<gitlab-api server="gitlab.home" project-path="ns/project" />
Please report youe issues or your idea at GitLab-Api.