diff --git a/README.md b/README.md index df147e9..a2e6a30 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ In lieu of a formal styleguide, take care to maintain the existing coding style. ## Release History + - 1.5.0: Published to NPM on 2013-01-21. + - Added the `Issue.getUrl` method. - 1.4.0: Published to NPM on 2013-01-21. - Added `project` and `issueId` to the Comment object. - 1.3.0: Published to NPM on 2013-01-20. diff --git a/lib/issue.js b/lib/issue.js index a33045c..6bb97fa 100644 --- a/lib/issue.js +++ b/lib/issue.js @@ -169,6 +169,12 @@ Issue.fromRawIssue = function(rawIssue) { } }; +/** +* +*/ +Issue.getUrl = function(project, issueId) { + return 'http://code.google.com/p/' + project.toLowerCase() + '/issues/detail?id=' + parseInt(issueId, 10); +}; // Export! module.exports = Issue; diff --git a/package.json b/package.json index 8acc095..760d7bc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "gcph-client", "description": "A Node.js client for the Google Code Project Hosting Issue Tracker API.", - "version": "1.4.0", + "version": "1.5.0", "homepage": "https://github.com/JamesMGreene/node-gcph-client", "author": { "name": "James M. Greene",