ERPAL GIT

Component ID

1921648

Component name

ERPAL GIT

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

1327

Component created

Component changed

Component body

This module provides GIT integration for ERPAL Projects using GIT Lab. GIT commits with an ID placed in the commit message are directly added to the task with the given ID.

This module requires the ERPAL project module. How to get the maximum benefit using ERPAL with this module see read in our blogpost describing a "GIT workflow using ERPAL for your project management"

Setting Up the GIT integration

  • enable the module erpal_git
  • create a new user such as "gitlabuser" in Drupal. This user Needs the permission to "post comments" and "Access to git rest Service"
  • Other users that should be able to see the git Syntax on comment forms, please add the permission "Show git commit syntax to the user" to their account
  • then go to /erpal/git/generate-hash and create an accesstoken (hash) for the uid of your new created user.(this is the user that gitlab will use to access ERPAL for posting comments there.
  • Now go to you gitlab URL and visit your repository. There you can enter webhooks in the Settings of the repository. Add a webhook for new git pushes where the URL needs to look like

    [YOUR ERPAL DOMAIN]/erpal/git/push/[YOUR NEW USERNAME]/[HASH OF THE USERNAME]

    Please replace the [PLACEHOLDERS] with your values.

  • For better access control please also add the complete repository URL to your project. There is a field named "Repository URL" in the project edit form for the URL of your repo where the project will allow to attach new git messages as comments from.
  • If you want a deeplink to the gitlab commit on each ERPAL commit comment, you need to add the deeplink base URL to your Project. For a repository named "my_repo" the URL like [YOUR GITLAB URL]/[REPO_PATH]/commit

    Please replace the [PLACEHOLDER] so that [YOUR GITLAB URL]/[REPO_PATH] points to your gitlab repository page.

Stay tuned at http://erpal.info !

This project is developed by Bright Solutions. We also offer paid Drupal and ERPAL integration and process consulting