* Computes the full repository name * @param {string} user - the username (or the full name) * @param {string} repo - the repository name, must not be passed if `user` is the full name * @return {string} the repository's full name
(user, repo)
| 130 | * @return {string} the repository's full name |
| 131 | */ |
| 132 | _getFullName(user, repo) { |
| 133 | let fullname = user; |
| 134 | |
| 135 | if (repo) { |
| 136 | fullname = `${user}/${repo}`; |
| 137 | } |
| 138 | |
| 139 | return fullname; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | module.exports = GitHub; |