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

Add readme badges to gamify refactoring some more #2562

Merged
merged 3 commits into from
Dec 20, 2018

Conversation

paulmelnikow
Copy link
Member

@shields-ci
Copy link

shields-ci commented Dec 19, 2018

Messages
📖 ✨ Thanks for your contribution to Shields, @paulmelnikow!
📖

Thanks for contributing to our documentation. We ❤️ our documentarians!

Generated by 🚫 dangerJS against 63a3ca0

<img src="https://img.shields.io/github/search/badges/shields/extends%20LegacyService.svg?label=legacy%20services%20needing%20refactor"
alt="legacy services needing refactor"></a>
<a href="https://github.com/search?utf8=%E2%9C%93&q=exampleUrl+repo%3Abadges%2Fshields+path%3A%2Fservices&type=Code&ref=advsearch&l=&l=">
<img src="https://img.shields.io/github/search/badges/shields/exampleUrl.svg?label=`exampleUrl`s%20needing%20refactor"
Copy link
Member

Choose a reason for hiding this comment

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

Could be cache (or user error) but I'm seeing 49 code results in GH search, while the badge is displaying 51. Maybe the 51 is coming from the code results (49) + commits (2)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, that sounds right. I wonder if the badge supports a more complex query.

Copy link
Member

@calebcartwright calebcartwright Dec 20, 2018

Choose a reason for hiding this comment

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

It looks like the badge implementation supports anything that can be added directly to the query param, for example:

https://img.shields.io/github/search/badges/shields/exampleUrl+user%3Abadges+repo%3Ashields+extension%3Ajs+path%3A%2Fservices.svg?label=`exampleUrl`s%20needing%20refactor

However, it looks like type is a separate query param (&type=Code) which we'd need to to exclude commits. That sounds like a potential new feature/enhancement to the GH search badge, but def. out of scope for this PR IMO.

@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-2562 December 20, 2018 20:15 Inactive
@shields-deployment
Copy link

This pull request was merged to master branch. This change is now waiting for deployment, which will usually happen within a few days. Stay tuned by joining our #ops channel on Discord!

After deployment, changes are copied to gh-pages branch:

@paulmelnikow paulmelnikow deleted the refactoring-badges branch December 20, 2018 20:20
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.

3 participants