Spaces:
Sleeping
Sleeping
Commit ·
ca6c843
1
Parent(s): dc0ab7b
revert: remove isPullRequest, use write-access token instead
Browse files- app/api/validate/route.js +0 -2
- utils/storage.js +0 -1
app/api/validate/route.js
CHANGED
|
@@ -83,7 +83,6 @@ export async function PUT(request) {
|
|
| 83 |
repo: { type: 'dataset', name: HF_DATASET_ID },
|
| 84 |
credentials: { accessToken: token },
|
| 85 |
title: `Validate dataset in doc_${document_index} page ${page_number}`,
|
| 86 |
-
isPullRequest: true,
|
| 87 |
operations: [{
|
| 88 |
operation: 'addOrUpdate',
|
| 89 |
path: repoPath,
|
|
@@ -164,7 +163,6 @@ export async function DELETE(request) {
|
|
| 164 |
repo: { type: 'dataset', name: HF_DATASET_ID },
|
| 165 |
credentials: { accessToken: token },
|
| 166 |
title: `Delete dataset from doc_${document_index} page ${page_number}`,
|
| 167 |
-
isPullRequest: true,
|
| 168 |
operations: [{
|
| 169 |
operation: 'addOrUpdate',
|
| 170 |
path: repoPath,
|
|
|
|
| 83 |
repo: { type: 'dataset', name: HF_DATASET_ID },
|
| 84 |
credentials: { accessToken: token },
|
| 85 |
title: `Validate dataset in doc_${document_index} page ${page_number}`,
|
|
|
|
| 86 |
operations: [{
|
| 87 |
operation: 'addOrUpdate',
|
| 88 |
path: repoPath,
|
|
|
|
| 163 |
repo: { type: 'dataset', name: HF_DATASET_ID },
|
| 164 |
credentials: { accessToken: token },
|
| 165 |
title: `Delete dataset from doc_${document_index} page ${page_number}`,
|
|
|
|
| 166 |
operations: [{
|
| 167 |
operation: 'addOrUpdate',
|
| 168 |
path: repoPath,
|
utils/storage.js
CHANGED
|
@@ -81,7 +81,6 @@ async function commitDocToHF(docIndex, pagesData, commitMessage) {
|
|
| 81 |
repo: { type: 'dataset', name: HF_DATASET_ID },
|
| 82 |
credentials: { accessToken: token },
|
| 83 |
title: commitMessage,
|
| 84 |
-
isPullRequest: true,
|
| 85 |
operations: [{
|
| 86 |
operation: 'addOrUpdate',
|
| 87 |
path: repoPath,
|
|
|
|
| 81 |
repo: { type: 'dataset', name: HF_DATASET_ID },
|
| 82 |
credentials: { accessToken: token },
|
| 83 |
title: commitMessage,
|
|
|
|
| 84 |
operations: [{
|
| 85 |
operation: 'addOrUpdate',
|
| 86 |
path: repoPath,
|