Skip to content

Commit 476dedc

Browse files
committed
feat(license): included the OSI logo in the badge
1 parent 8e5ecb2 commit 476dedc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ $ npm test
236236

237237
[license-link]: LICENSE
238238

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

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

src/license/lifter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function ({vcs}) {
99
consumer: {
1010
license: {
1111
link: 'LICENSE',
12-
img: `https://img.shields.io/github/license/${vcs.owner}/${vcs.name}.svg`,
12+
img: `https://img.shields.io/github/license/${vcs.owner}/${vcs.name}.svg?logo=opensourceinitiative`,
1313
text: 'license'
1414
}
1515
}

src/license/lifter.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('license lifter', () => {
1111

1212
expect(badges.consumer.license).toEqual({
1313
link: 'LICENSE',
14-
img: `https://img.shields.io/github/license/${vcsOwner}/${vcsName}.svg`,
14+
img: `https://img.shields.io/github/license/${vcsOwner}/${vcsName}.svg?logo=opensourceinitiative`,
1515
text: 'license'
1616
});
1717
});

test/integration/features/step_definitions/documentation-steps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getLicenseBadgeDetails({vcs}) {
1616
label: 'license-link',
1717
imageReferenceLabel: 'license-badge',
1818
imageAltText: 'license',
19-
imageSrc: `https://img.shields.io/github/license/${vcs.owner}/${vcs.name}.svg`,
19+
imageSrc: `https://img.shields.io/github/license/${vcs.owner}/${vcs.name}.svg?logo=opensourceinitiative`,
2020
link: 'LICENSE'
2121
};
2222
}

0 commit comments

Comments
 (0)