Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues/80 add technology and difficulty #82

Merged
merged 4 commits into from
Jun 20, 2019
Merged

Issues/80 add technology and difficulty #82

merged 4 commits into from
Jun 20, 2019

Conversation

manekenpix
Copy link
Member

@manekenpix manekenpix commented Jun 17, 2019

closes #80

Added labels to help-wanted so now difficulty is available for display. It hasn't been decided if technology will be added using labels or the issue's text, so right now repository.language is what provides information about technology.

Also, forEach loops and if statements were replaced (when possible) with map() and filter().

"express": "^4.16.3",
"jquery": "^3.3.1",
"path": "^0.12.7",
"prettier": "^1.18.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't these go to "devDependencies"? @poftadeh @manekenpix

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but linting is covered in #28, so I would recommend not committing these packages yet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove prettier then.

Github/service.js Show resolved Hide resolved
});
}
filteredIssues.push({
const labelsInIssue = issue.labels.map(label => {
Copy link
Contributor

@poftadeh poftadeh Jun 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be an implicit return: issue.labels.map(label => label.name);

"express": "^4.16.3",
"jquery": "^3.3.1",
"path": "^0.12.7",
"prettier": "^1.18.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but linting is covered in #28, so I would recommend not committing these packages yet.

belavina
belavina previously approved these changes Jun 19, 2019
poftadeh
poftadeh previously approved these changes Jun 19, 2019
@manekenpix manekenpix dismissed stale reviews from poftadeh and belavina via 259f3fd June 19, 2019 22:00
@manekenpix manekenpix merged commit 5eb9638 into Seneca-CDOT:master Jun 20, 2019
@manekenpix manekenpix deleted the issues/80-AddTechnologyAndDifficulty branch June 20, 2019 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Technology and Difficulty Attributes for the 'Help Wanted' Endpoint
3 participants