Skip to content

georgethomasuk/gitlab-trac-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

gitlab-trac-integration

Provide a Trac webhook for GitLab to call and update ticket information.

The end goal is to make this a Trac plugin. However for now this is a cgi script to be run by your webserver of choice

GitLab Webhook Configuration

Your GitLab webhook should be pointed at:

http://127.0.0.1/pathtohook?project_name=<tracprojectname>&repo_name=<tracreponame>

If no Trac project name is specified in the query string, then it will use the default project. If Trac and Gitlab repo names do not match, then should manually configure the repo naem to that of Trac's

The webook.cig file will ned to be made executable: chomd +x webhook.cgi

Apache Configuration

Be carefult when exposing this webhook, as it may expose your system or Trac repositories in undesirable ways.

ScriptAlias /hooks/ "/var/trac/cgi-bin/gitlab-trac-integration"

<Directory "/var/trac/cgi-bin/gitlab-trac-integration">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

About

Provide a Trac webhook for GitLab to update ticket information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published