Feature #321

redmine git commit links point to external cgit

Added by Natanael Copa 6 months ago. Updated 4 months ago.

Status:Assigned Start:03/11/2010
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Bugtracker Spent time: -
Target version:-

Description

The redmine git browser is slow. Would be nice if we could get have the links to git commits in redmine to point to external git site with cgit.
http://git.alpinelinux.org/cgit/aports/

Issues there are referenced back to redmine. See forexample the "fixes #315" in commit message: http://git.alpinelinux.org/cgit/aports/commit/?id=a3041b9cb7ed70bb5894ef4d909d7bd7781fa691


Add

Watchers

Cameron Banta

History

Updated by Cameron Banta 6 months ago

  • Status changed from New to Assigned

Ok, I create a quick plugin for redmine that should just redirect the links to the url you configure in the plugin settings. It's pretty basic but should get the job done.

Link to plugin on github: http://github.com/cbanta/redmine_git_links

Installing is something like this:
./script/plugin install --force git://github.com/cbanta/redmine_git_links.git

Then restart redmine

Updated by Natanael Copa 6 months ago

wow, that was quick. I installed it but i think we need to work on that part that replaces <%revid%> with the id from controller. I think we might also want different url on different subprojects (like apk-tools). Myabe fish out the last element in git repostiory and strip out trailing /.git?

Should we set up a test redmine install on wwwtest and let you work on it there?

Updated by Cameron Banta 6 months ago

Sorry, that was my mistake. Accidentally nuked the substitution when I added the on/off toggle.

It's fixed on github. Also added a project substitution, too.

Updated by Natanael Copa 6 months ago

  • Project changed from Alpine Linux to Alpine Infrastructure
  • Category deleted (1)

Updated by Natanael Copa 6 months ago

  • Category set to Bugtracker
  • Assigned to deleted (Cameron Banta)

Updated by Cameron Banta 4 months ago

Updated this plugin on github. It will now redirect all requests for revision details to the cgit url.

Also available in: Atom PDF