rafmacalaba commited on
Commit
479efd4
·
verified ·
1 Parent(s): 086a318

fix hub commit summary field

Browse files
Files changed (1) hide show
  1. 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('commitTitle', `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);
 
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);