Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Added 'Issue.getUrl' method.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMGreene committed Jan 22, 2013
1 parent 41b1f1e commit 7c2da40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions lib/issue.js
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion 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",
Expand Down

0 comments on commit 7c2da40

Please sign in to comment.