lukeed / lukeed/generator-taskr
How about getting GitHub username with GitHub API ?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 26
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Like [yeoman/generator-generator/app/index.js](https://github.com/yeoman/generator-generator/blob/master/app/index.js).
``` js
var GitHubApi = require('github');
github.user.getFrom({
user: name
}, function (err, res) {
if (err) {
log.error('Cannot fetch your github profile. Make sure you\'ve typed it correctly.');
res = emptyGithubRes;
}
cb(JSON.parse(JSON.stringify(res)));
})
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the referenced yeoman/generator-generator/app/index.js example and compare it with generator-taskr's existing generator entry points. The work is done when the generator can obtain the GitHub username through the API and use the shown error fallback when the profile cannot be fetched.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, javascript
- Domain
- api, cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100