-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Rewrite vso, rename to [AzureDevops], validate SVG [readthedocs] #2252
Conversation
- Rename vso to azure-devops internally - URLs are still /vso for now - Should we make a way to let a service register multiple URL patterns? - Add validation to BaseSvgScrapingService - Update readthedocs - Handle shared code using a functional pattern instead of inheritance (ref: #2031 (comment))
Generated by 🚫 dangerJS |
The way we've handled this on other badges is to stick the alternatives in a non-capturing group e.g: shields/services/wordpress/wordpress-rating.service.js Lines 81 to 87 in 4a298cb
so you could use
Seems reasonable 👍 Its a useful pattern to add to the toolbelt. I suspect its probably going to be most useful for larger service families where there is commonality but also variance as opposed to a rigid parent/child structure. I wouldn't particulary want to mandate style here though. Lets leave composition vs inheritance up to the implementer. |
Could be true. I could also see it being valuable for single-service families which grow larger over time. |
Thanks for reviewing! |
This PR does a couple things:
/vso
for now. Should we make a way to let a service register multiple URL patterns?