Skip to content
Closed
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
8 changes: 5 additions & 3 deletions src/pyob/autoreviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,16 +344,18 @@ def run_pipeline(self, current_iteration: int):
logger.info(
f"Found pending {PR_FILE_NAME} and/or {FEATURE_FILE_NAME} from a previous run."
)
proposals_handled = self._handle_pending_proposals(
proposals_outcome = self._handle_pending_proposals(
"Hit ENTER to PROCEED, type 'SKIP' to ignore",
allow_delete=True,
)
if not proposals_handled:
if proposals_outcome == "SKIPPED":
logger.info(
"Pending proposals were not applied or deleted. Halting current pipeline iteration to await user action."
)
return
changes_made = True
elif proposals_outcome == "APPLIED":
changes_made = True
# If proposals_outcome is "DELETED", changes_made remains False, allowing the scan to proceed.

if not changes_made:
logger.info("==================================================")
Expand Down
4 changes: 2 additions & 2 deletions src/pyob/dashboard_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@
async function reviewPatch(patchId, action) {
try {
if (action === 'approved') {
await fetch('/api/approve_patch', {
await fetch('/api/review_patch', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ patch_id: patchId })
body: JSON.stringify({ patch_id: patchId, action: 'approved' })
});
} else {
await fetch('/api/review_patch', {
Expand Down
Loading