Spaces:
Running
Running
fix hub commit summary field
Browse files- review.html +1 -1
review.html
CHANGED
|
@@ -281,7 +281,7 @@ async function hubCommit(entry) {
|
|
| 281 |
const content = btoa(unescape(encodeURIComponent(rows.map(x => JSON.stringify(x)).join('\n') + '\n')));
|
| 282 |
const fd = new FormData();
|
| 283 |
fd.append('operations', JSON.stringify({key: 'headerFile', value: {path, content}}) + '\n');
|
| 284 |
-
fd.append('
|
| 285 |
const res = await fetch(`https://huggingface.co/api/datasets/${repo}/commit/main`, {
|
| 286 |
method: 'POST', headers: {Authorization: `Bearer ${tok}`}, body: fd});
|
| 287 |
if (!res.ok) throw new Error('hub ' + res.status);
|
|
|
|
| 281 |
const content = btoa(unescape(encodeURIComponent(rows.map(x => JSON.stringify(x)).join('\n') + '\n')));
|
| 282 |
const fd = new FormData();
|
| 283 |
fd.append('operations', JSON.stringify({key: 'headerFile', value: {path, content}}) + '\n');
|
| 284 |
+
fd.append('summary', `ruling ${who}: ${entry.key}=${entry.ruling} (web)`);
|
| 285 |
const res = await fetch(`https://huggingface.co/api/datasets/${repo}/commit/main`, {
|
| 286 |
method: 'POST', headers: {Authorization: `Bearer ${tok}`}, body: fd});
|
| 287 |
if (!res.ok) throw new Error('hub ' + res.status);
|