Skip to content

Commit ebc3688

Browse files
okainovdregad
authored andcommitted
Update Gitlab integration readme
- Added link to Gitlab setup to main README file - Actualized Gitlab setup steps Fixes #278
1 parent 88c782c commit ebc3688

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ MantisBT version | Tags | Branch | Notes
117117
relevant plugin extension:
118118

119119
* [SourceGithub](docs/CONFIGURING.SourceGithub.md)
120+
* [SourceGitlab](SourceGitlab/README.md)
120121
* [SourceViewVC](docs/CONFIGURING.SourceViewVC.md)
121122
* [SourceSVN](docs/CONFIGURING.SourceSVN.md)
122123

SourceGitlab/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77

88
## Gitlab setup
99

10-
- Login with an Owner (or Adminstrator) of a Project, go to "Projet settings", "Web hooks",
11-
add a Push hook with Mantis url and Mantis Source Integration plugin "API Key":
12-
http://mantis.server.intra/plugin.php?page=Source/checkin&api_key=abcdeb8129a4451a35f47881
13-
- Create a user with (at least) read access to the repository. For a public repository, any user would work.
14-
Login with this user, go to "Profile settings", "Account", and copy the "Private token".
10+
- Login with an Owner (or Administrator) of a Project, go to *Settings -> Integrations* and
11+
add a Push hook to Web Hooks section with Mantis URL and Mantis Source Integration plugin "API Key":
12+
`http://mantis.server.intra/plugin.php?page=Source/checkin&api_key=abcdeb8129a4451a35f47881`
13+
- Go to your user *Settings -> Access Token -> Personal Access Tokens* and create a token with at least "api"
14+
access. You will need it as "hub_app_secret" in Mantis configuration.
1515

1616
## Mantis repository setup
1717

1818
- In Mantis administration, create a repository with a unique name and of type "Gitlab".
1919
- URL field is not used by the plugin.
2020
- Gitlab config fields are:
2121
- hub_root: root url of the Gitlab webserver, required to access Web API
22-
- hub_repoid: id of the Gitlab projet, starting from 1 for the first created project (auto-filed if reponame is valid and readable for the user)
22+
- hub_repoid: id of the Gitlab project. Should be auto-filled if reponame is valid and readable for the user.
2323
- hub_reponame: full name of the project in the form "group-namespace/project-name"
2424
- hub_app_secret: the "Private token" of a user with at least a read access to the project.
2525
- master_branch: use '*' or a list of branches to track

0 commit comments

Comments
 (0)