Skip to content

Commit

Permalink
feat(license): included the OSI logo in the badge
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jul 20, 2024
1 parent 8e5ecb2 commit 476dedc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ $ npm test

[license-link]: LICENSE

[license-badge]: https://img.shields.io/github/license/form8ion/project.svg
[license-badge]: https://img.shields.io/github/license/form8ion/project.svg?logo=opensourceinitiative

[commit-convention-link]: https://conventionalcommits.org

Expand Down
2 changes: 1 addition & 1 deletion src/license/lifter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function ({vcs}) {
consumer: {
license: {
link: 'LICENSE',
img: `https://img.shields.io/github/license/${vcs.owner}/${vcs.name}.svg`,
img: `https://img.shields.io/github/license/${vcs.owner}/${vcs.name}.svg?logo=opensourceinitiative`,
text: 'license'
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/license/lifter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('license lifter', () => {

expect(badges.consumer.license).toEqual({
link: 'LICENSE',
img: `https://img.shields.io/github/license/${vcsOwner}/${vcsName}.svg`,
img: `https://img.shields.io/github/license/${vcsOwner}/${vcsName}.svg?logo=opensourceinitiative`,
text: 'license'
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getLicenseBadgeDetails({vcs}) {
label: 'license-link',
imageReferenceLabel: 'license-badge',
imageAltText: 'license',
imageSrc: `https://img.shields.io/github/license/${vcs.owner}/${vcs.name}.svg`,
imageSrc: `https://img.shields.io/github/license/${vcs.owner}/${vcs.name}.svg?logo=opensourceinitiative`,
link: 'LICENSE'
};
}
Expand Down

0 comments on commit 476dedc

Please sign in to comment.