Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Prev. Comments & Formatting #12

Merged
merged 7 commits into from
Jul 8, 2018
Merged

Prev. Comments & Formatting #12

merged 7 commits into from
Jul 8, 2018

Conversation

newnewb
Copy link
Contributor

@newnewb newnewb commented Apr 8, 2018

Added comment lookup

Fixed the indentation and formatting issue caused by the mapping

lib/comments.js Outdated
let result
//iterates over all the comments
for (comment of comments['data']){
if(comment.user.login=='commitlint[bot]'&&comment.user.type=='Bot'){ //looks for the first comment made by the bot
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not sure about this but it has to better a better way to check for bot's comment other that it's login name.

This won't work for self-deployed instance since app names are unique.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@z0al
Copy link
Owner

z0al commented Apr 9, 2018

Hey @newnewb thank you so much for this 👌

I took a quick review and it looks good. I've and commented on some parts, though.

Also, please add some tests that cover your changes. Don't hesitate to ask for help here if you feel stuck.

Thanks again for contributing 🌟

Repository owner deleted a comment Apr 9, 2018
Repository owner deleted a comment Apr 18, 2018
@z0al
Copy link
Owner

z0al commented May 10, 2018

@newnewb Nice work ✨

I would merge this PR when we update the docs to reflect the little changes we made (e.g. the need for APP_NAME env)

Also, we need to add new tests for regression purpose

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants