Skip to content

Update Gitlab integration readme #278

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

Merged
merged 2 commits into from
Aug 21, 2018

Conversation

okainov
Copy link
Contributor

@okainov okainov commented Aug 16, 2018

Just set up Gitlab integration and found out that current data is out-of-date. Also there was no link to Gitlab setup from the main readme.

  • Added link to Gitlab setup to main README file
  • Actualized Gitlab setup steps

- Added link to Gitlab setup to main README file
- Actualized Gitlab setup steps

## Mantis repository setup

- In Mantis administration, create a repository with a unique name and of type "Gitlab".
- URL field is not used by the plugin.
- Gitlab config fields are:
- hub_root: root url of the Gitlab webserver, required to access Web API
- 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)
- hub_repoid: id of the Gitlab project. Should be auto-filed if reponame is valid and readable for the user.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto-filled

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

http://mantis.server.intra/plugin.php?page=Source/checkin&api_key=abcdeb8129a4451a35f47881
- Create a user with (at least) read access to the repository. For a public repository, any user would work.
Login with this user, go to "Profile settings", "Account", and copy the "Private token".
- Login with an Owner (or Adminstrator) of a Project, go to "Settings" -> "Integrations" and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Administrator
  • Suggest to use MarkDown italics instead of using quotes, e.g. _Settings -> Integrations_

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

- Login with an Owner (or Adminstrator) of a Project, go to "Settings" -> "Integrations" and
add a Push hook to Web Hooks section with Mantis URL and Mantis Source Integration plugin "API Key":
`http://mantis.server.intra/plugin.php?page=Source/checkin&api_key=abcdeb8129a4451a35f47881`
- Go to your user Settings -> "Access Token" -> "Personal Access Tokens" and create a token with at least "api"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: _Settings -> Access Token -> Personal Access Tokens_

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@okainov
Copy link
Contributor Author

okainov commented Aug 21, 2018

@dregad thanks for feedback, see updated.

@dregad dregad merged commit ebc3688 into mantisbt-plugins:master Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants