Trac 1.0 + GitHub

87 views
Skip to first unread message

Josh Santangelo

unread,
Oct 29, 2013, 6:51:15 PM10/29/13
to trac-...@googlegroups.com
Hi all -- My company loves Trac for issue tracking as it has just the right amount of features without being too overblown. We also love GitHub for source control. I am trying to implement a custom Trac installation to remove our dependency on the company providing that service currently, but am having trouble figuring out how to make GitHub talk to Trac.

At a minimum, I want to be able to push to GitHub and have Trac automatically update its local copy of the repository and update any tickets mentioned in the commit message.

I have tried a few different plugins:

https://github.com/mitar/trac-githubsync (Didn't seem to install correctly, or at least didn't show up in the plugins list in trac.)

The main thing I seem to be fighting is that the plugins add a new handler for GitHub to hit in a commit, but it doesn't seem to get registered. The way my trac is configured, the URL would be something like http://mydomain.com/cgi-bin/trac.fcgi/github, but I just get a "No handler matched request to /github" error there.

This is my first time trying to configure a custom install, so maybe I'm missing something basic here, any advice would be welcome.

thanks,
-josh

Dennis Bartlett

unread,
Jun 3, 2014, 7:39:47 PM6/3/14
to trac-...@googlegroups.com

Hey Josh, did you ever get a solution for this?  I to am having issues getting this to work with 1.x and i've tried just about everything under the sun.  I do know that github-trac and trac-github aren't needed any longer in 1.x as its a tracopt now.

If anyone has any insite as to why we don't have a handler for /github even with the git tracopt enabled, please let us know.

Regards,
Dennis

Ethan Jucovy

unread,
Jun 3, 2014, 8:57:53 PM6/3/14
to trac-...@googlegroups.com
Hi Dennis,

On Tue, Jun 3, 2014 at 3:39 PM, Dennis Bartlett <dennis....@44doors.com> wrote:
I do know that github-trac and trac-github aren't needed any longer in 1.x as its a tracopt now.

If anyone has any insite as to why we don't have a handler for /github even with the git tracopt enabled, please let us know.

That's incorrect -- the built-in tracopt "git" component doesn't provide any github integration.  It's a standalone component for interacting with git repositories that are hosted on the same server as your Trac installation.

For Github integration you'll still need to use a third-party plugin like the ones listed in Josh's original email.  I haven't tried any of those myself, though.

Hope this helps,
Ethan

HardyPottinger

unread,
Sep 26, 2014, 8:45:29 PM9/26/14
to trac-...@googlegroups.com
Hi, I know this is an ancient thread, but it bears pointing out that on the list of plugins mentioned by Josh, only one doesn't seem to have any "installation issues":


And, the README for this plugin quite clearly that it's included in Trac >= 1.0... I think Dennis can be forgiven in assuming that this statement was true.

So, I'll just take a moment to ask: has *anyone* successfully installed any of the plugins mentioned by Josh? To make things easier, I'll copy/paste them below, and will include Josh's remarks on each one, which jive with my own experience:

https://github.com/mitar/trac-githubsync (Didn't seem to install correctly, or at least didn't show up in the plugins list in trac.)

To put it bluntly: does Trac integrate with GitHub? If so, how? Thanks!

--Hardy

RjOllos

unread,
Aug 4, 2015, 11:03:31 PM8/4/15
to Trac Users


On Friday, September 26, 2014 at 1:45:29 PM UTC-7, HardyPottinger wrote:
Hi, I know this is an ancient thread, but it bears pointing out that on the list of plugins mentioned by Josh, only one doesn't seem to have any "installation issues":


And, the README for this plugin quite clearly that it's included in Trac >= 1.0... I think Dennis can be forgiven in assuming that this statement was true.

So, I'll just take a moment to ask: has *anyone* successfully installed any of the plugins mentioned by Josh? To make things easier, I'll copy/paste them below, and will include Josh's remarks on each one, which jive with my own experience:

https://github.com/mitar/trac-githubsync (Didn't seem to install correctly, or at least didn't show up in the plugins list in trac.)

To put it bluntly: does Trac integrate with GitHub? If so, how? Thanks!

I've had success getting trac-github to work on a public installation. The steps for a private installation are a bit different, so I can't say how well that works. Authentication through GitHub, sync'ing a local mirror and using GitHub as the repository browser all work well.

I encountered two issues (#86 and #87 in the trac-github issue tracker), but I expect we can get those issues resolved and a new release issued soon.

- Ryan
 
Reply all
Reply to author
Forward
0 new messages