API Reference
Class
BadgeBuilder
Helper to add common badges to README.
Inheritance
- Object
- BadgeBuilder
Methods
public BadgeBuilder Build(String url) #Returns:
BadgeBuilderAdds a CI build badge link (explicit URL only, no dynamic image).
Parameters
- url System.String
public BadgeBuilder BuildForGitHub(String owner, String repo, String workflow = null, String branch = null) #Returns:
BadgeBuilderConvenience for GitHub Actions badge with Shields.io (workflow file required for dynamic status image).
Parameters
- owner System.String
- repo System.String
- workflow System.String = null
- branch System.String = null
public BadgeBuilder Coverage(String url) #Returns:
BadgeBuilderAdds a code coverage badge using Shields.io for Codecov.
Parameters
- url System.String
public BadgeBuilder CoverageCodecov(String owner, String repo, String branch = null) #Returns:
BadgeBuilderAdds a Codecov coverage badge and link for the given repo/branch.
Parameters
- owner System.String
- GitHub owner or org.
- repo System.String
- Repository name.
- branch System.String = null
- Optional branch for the badge.
public BadgeBuilder Custom(String text, String url, String title = null) #Returns:
BadgeBuilderAdds a custom badge label linked to a URL.
Parameters
- text System.String
- url System.String
- title System.String = null
public BadgeBuilder NuGet(String id) #Returns:
BadgeBuilderAdds a NuGet badge using Shields.io.
Parameters
- id System.String
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object