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

Support Snap CI #492

Merged
merged 3 commits into from
Aug 18, 2015
Merged

Support Snap CI #492

merged 3 commits into from
Aug 18, 2015

Conversation

pine
Copy link
Contributor

@pine pine commented Jul 17, 2015

Hi. I've implemented #471.

Snap CI is
https://snap-ci.com

Thanks.

@espadrine
Copy link
Member

Thanks for contributing!

I'm not a big fan of SVG scraping, as changing the image asset can break this, so if you can improve on this by asking Snap CI to provide an API, it would be great!

Just to be clear, I will merge this once you've answered the review.

sendBadge(format, badgeData);
return;
}
console.log(badgeData.text[1]);
Copy link
Member

Choose a reason for hiding this comment

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

I think this is a leftover from debugging. Can you remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh... This is debug code. I should remove it.

@pine
Copy link
Contributor Author

pine commented Jul 22, 2015

Thanks review! I'll fix these problem point.

I'm not a big fan of SVG scraping, as changing the image asset can break this, so if you can improve on this by asking Snap CI to provide an API, it would be great!

Exactly, I looked for Snap CI API but not found. I want to use Snap CI API too!

@pine
Copy link
Contributor Author

pine commented Jul 23, 2015

@espadrine Fix indicated points by PR. Thanks!

} else if (res === 'Failed') {
badgeData.colorscheme = 'red';
} else {
badgeData.text[1] = res.toLowerCase();
Copy link
Member

Choose a reason for hiding this comment

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

I believe this operation does not change the content of badgeData.text[1], as it was already set to the lowercase version of res. Am I wrong?

If I am correct, could you remove the else clause please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I think so too.

@pine pine force-pushed the feature/snap-ci branch from e49c689 to 87d20e4 Compare August 15, 2015 05:37
@pine
Copy link
Contributor Author

pine commented Aug 15, 2015

@espadrine Fix indicated points, and merged upstream/master. Thanks!

@espadrine espadrine merged commit 87d20e4 into badges:master Aug 18, 2015
@espadrine
Copy link
Member

Thanks a lot for contributing!

@pine
Copy link
Contributor Author

pine commented Aug 20, 2015

Thanks!!

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

Successfully merging this pull request may close these issues.

2 participants