Feature #321
redmine git commit links point to external cgit
| Status: | Closed | Start date: | 03/11/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| 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
History
Updated by Cameron Banta almost 2 years 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 almost 2 years 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 almost 2 years 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 almost 2 years ago
- Project changed from Alpine Linux to Alpine Infrastructure
- Category deleted (
1)
Updated by Natanael Copa almost 2 years ago
- Category set to Bugtracker
- Assignee deleted (
Cameron Banta)
Updated by Cameron Banta over 1 year ago
Updated this plugin on github. It will now redirect all requests for revision details to the cgit url.
Updated by Jeff Bilyk 8 months ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
This was finished up (i think by clandmeter) a while ago. For example, see http://bugs.alpinelinux.org/issues/236, which has a link to http://bugs.alpinelinux.org/projects/alpine/repository/revisions/10c8d7593a320a8b57226a1571541fb5d2ed033f , which points to http://git.alpinelinux.org/cgit/aports.git/commit/?id=10c8d7593a320a8b57226a1571541fb5d2ed033f.
Updated by Natanael Copa 7 months ago
- Status changed from Resolved to Closed