Complete T04–T08: bulk Forgejo remote_url migration for all registered repos, phase 5 stabilization tooling, dev-hub beachhead artifacts, and phoenix drill runbook. Archive workplan with T09/T10 as operator gates.
33 lines
1.1 KiB
Bash
Executable File
33 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Cancel duplicate CUST-WP-0054 hub tasks created during 2026-07-07 workstream recreation.
|
|
set -euo pipefail
|
|
|
|
API_BASE="${API_BASE:-http://127.0.0.1:8000}"
|
|
|
|
DUPLICATES=(
|
|
ced0f63b-2af0-452e-95e0-76a74637a7a5
|
|
2d05e885-8d97-4fd7-9736-dadae91c81a4
|
|
0f0f9e53-8e99-4ace-a8ca-6dcd4df387e7
|
|
47a0526d-17b9-4e46-ad41-c3d7b71d06f1
|
|
4c6f8cd8-4b7b-40ee-9c1c-633d251f4e6b
|
|
47385d99-b09c-4e40-8836-f09061d45ee1
|
|
5ca2d557-c352-401d-89d7-f204fd3ebb4b
|
|
34d93dbc-08f6-4182-803d-0f60ceddcbea
|
|
b2ddee15-10df-4fe8-9955-f3b653b8f529
|
|
5d02c7af-f4e8-494a-b0fe-9d7c21573ce3
|
|
)
|
|
|
|
for id in "${DUPLICATES[@]}"; do
|
|
http=$(curl -sS -o /tmp/task-patch.json -w '%{http_code}' \
|
|
-X PATCH "${API_BASE}/tasks/${id}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"status":"cancel","intervention_note":"Duplicate from 2026-07-07 workstream recreation; canonical task retained in workplan."}')
|
|
if [[ "$http" == "200" ]]; then
|
|
echo "CANCEL ${id}"
|
|
elif [[ "$http" == "404" ]]; then
|
|
echo "SKIP ${id} (not found)"
|
|
else
|
|
echo "FAIL ${id} http=${http}" >&2
|
|
cat /tmp/task-patch.json >&2
|
|
fi
|
|
done |