Add code review plug-in for redmine

Source: Internet
Author: User
Tags redmine

An important advantage of redmine is its powerful plug-in extension function. You can find the plug-ins you need in the official redmine plug-in list and install and use them directly. And, as open-source software, these plug-insSource codeThis makes it easy for us to learn and develop and expand functions as needed.

Today, I want to install a useful plug-in, code review. With this plug-in, we can submitCodeOnline review is very convenient. I have referenced two articlesArticle: Describes how to use the redmine code review Wiki and redmine plug-in codereview. The procedure is as follows:

1. Install the code review plug-in

1. Download the code review plug-in: Download

Unzip redmine_code_review-0.4.3.Zip
Sudo MV redmine_code_review/OPT/Redmine/Vendor/Plugins

2. Load the plug-in

 
Sudo rake DB: Migrate_pluginsRails_env=Production

3. Restart redmine

Ii. Configure code review

1. Create a project and check the code review module in the module bar.

2. Install Subversion

 
Sudo apt-Get install Subversion

Set Svn in projects> Settings> repository to add the code library path.

3. open repository to view the project code.

3. Chinese garbled characters

The Code review plug-in is relatively simple to install, but encountered an annoying problem, that is, Chinese garbled characters. This problem has been plagued for a long time and has not been solved after reading many tutorials on the Internet. To this end, I also learned the development history of character encoding, from ASCII to GBK to utf8. Later, we found that the Chinese characters in the Code are encoded with GBK, while redmine is decoded with utf8, so garbled characters are generated. Finally, we found a solution to this problem. In fact, it is very simple. You can set GBK encoding.

Iv. Further development

Code review is not very useful, and new features need to be added, mainly including the following:

1. Code folding;

2. display the author and comments;

3. Integration with Alibaba trademanager's pop-up window function.

These are the work I will do in the next period.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.