Skip to content

Commit 59b203c

Browse files
authored
Add license badge to gh-boards
1 parent 3f2f69e commit 59b203c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • archive/web-tools/gh-boards

archive/web-tools/gh-boards/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ document.addEventListener('DOMContentLoaded', () => {
4141
{ value: 'badge_followers', label: 'Badge — Followers' },
4242
{ value: 'badge_watchers', label: 'Badge — Watchers' },
4343
{ value: 'badge_workflow', label: 'Badge — Workflow Status' },
44+
{ value: 'badge_license', label: 'Badge — License' },
4445
];
4546

4647
// --- Initialization ---
@@ -54,7 +55,7 @@ document.addEventListener('DOMContentLoaded', () => {
5455

5556
function createDefaultArtifact(type) {
5657
// Badge types with repo + color customization
57-
if (type === 'badge_stars' || type === 'badge_downloads' || type === 'badge_watchers') {
58+
if (type === 'badge_stars' || type === 'badge_downloads' || type === 'badge_watchers' || type === 'badge_license') {
5859
return {
5960
type: type,
6061
options: {
@@ -395,6 +396,7 @@ document.addEventListener('DOMContentLoaded', () => {
395396
'badge_followers': { type: 'badge', style: 'badge_followers', badge_type: 'followers' },
396397
'badge_watchers': { type: 'badge', style: 'badge_watchers', badge_type: 'watchers' },
397398
'badge_workflow': { type: 'badge', style: 'badge_workflow', badge_type: 'workflow_status' },
399+
'badge_license': { type: 'badge', style: 'badge_license', badge_type: 'license' },
398400
};
399401

400402
// Auto-generate IDs

0 commit comments

Comments
 (0)