Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/cla-mark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ jobs:
}

if (createMissing) {
await ensureLabel(labelCovered, '2ea44f', 'Contributor License Agreement is considered covered');
await ensureLabel(labelReview, '9a9a9a', 'CLA status requires manual review');
await Promise.all([
ensureLabel(labelCovered, '2ea44f', 'Contributor License Agreement is considered covered'),
ensureLabel(labelReview, '9a9a9a', 'CLA status requires manual review')
]);
}

// Remove the opposite label if present, then add the desired one
Expand Down
6 changes: 4 additions & 2 deletions examples/mirc-ui-mock/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@

const channels = ['#general', '#random', '#cozy-outpost'];
const users = ['alice', 'bob', 'carol', 'dave'];
const nickColors = ['nick-a','nick-b','nick-c','nick-d','nick-e','nick-f'];
const nickColorClass = (nick) => {
const idx = Math.abs(hash(nick)) % 6; // 0..5
return ['nick-a','nick-b','nick-c','nick-d','nick-e','nick-f'][idx];
return nickColors[idx];
};

// Simple hash for color bucketing
Expand Down Expand Up @@ -144,7 +145,8 @@
logEl.scrollTop = logEl.scrollHeight;
}

const htmlEscapeMap = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' };
function escapeHtml(s) {
return s.replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
return s.replace(/[&<>"']/g, (c) => htmlEscapeMap[c]);
}
})();