diff options
author | James Moger <james.moger@gitblit.com> | 2013-11-25 13:02:20 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-12-03 10:36:19 -0500 |
commit | c6f3d01c29bb67156b8154bfe5780537b0ef43ac (patch) | |
tree | 9af2cdf8bc2137d937d48ef78ecd0971e9f7e7a6 /src/main/java/com/gitblit/servlet | |
parent | b6976fc0a4b1fd07e1e72fdd06597a0ffb9d48ef (diff) | |
download | gitblit-c6f3d01c29bb67156b8154bfe5780537b0ef43ac.tar.gz gitblit-c6f3d01c29bb67156b8154bfe5780537b0ef43ac.zip |
Add support for per-repository bugtraq configuration
Imported the reference implementation contributed by syntevo which
is used in their SmartGit product. You may create a bugtraq config
section inf your .git/config file OR you may add a .gitbugtraq file
to the root of your repository.
Example:
[bugtraq "issues"]
url = http://code.google.com/p/gitblit/issues/detail?id=%BUGID%
logRegex = "[Ii]ssue[-#:\\s]{1}\\d+"
logRegex1 = "\\d+"
[bugtraq "[pullrequests"]
url = "https://github.com/gitblit/gitblit/pull/%BUGID%"
logRegex = "(?:pull request|pull|pr)\\s*[-#]?([0-9]+)"
Change-Id: Iaba305bf4280d08cc4d1abf533c2f1365470a43f
Diffstat (limited to 'src/main/java/com/gitblit/servlet')
-rw-r--r-- | src/main/java/com/gitblit/servlet/SyndicationServlet.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/servlet/SyndicationServlet.java b/src/main/java/com/gitblit/servlet/SyndicationServlet.java index 739ee2d9..a35efa83 100644 --- a/src/main/java/com/gitblit/servlet/SyndicationServlet.java +++ b/src/main/java/com/gitblit/servlet/SyndicationServlet.java @@ -273,7 +273,7 @@ public class SyndicationServlet extends HttpServlet { StringUtils.encodeURL(model.name.replace('/', fsc)), commit.getName());
entry.published = commit.getCommitterIdent().getWhen();
entry.contentType = "text/html";
- String message = processor.processCommitMessage(model, commit.getFullMessage());
+ String message = processor.processCommitMessage(repository, model, commit.getFullMessage());
entry.content = message;
entry.repository = model.name;
entry.branch = objectId;
|