#!/usr/bin/env bash
# Run in the scenario-runner checkout with the three AZURE_DEVOPS_* fixture variables exported.
set -euo pipefail
az boards work-item create --org "$AZURE_DEVOPS_TEST_ORG" --project "$AZURE_DEVOPS_TEST_PROJECT" --type Task --title 'Azure issue list proof 38015' --output json
# Copy the accompanying azure-workitems-batch.e2e.ts into scripts/scenarios/ first.
T3CODE_DEV_SEED=0 T3_SCENARIO_INHERIT_ENV='AZURE_DEVOPS_*,T3CODE_DEV_SEED' vp run scenarios:prove scripts/scenarios/azure-workitems-batch.e2e.ts --base f79ab79721e3dc49cf738b7dc840e79282c3eca9 --head 93905049b1bcbe9ef597b60e5d81ccbf37ad65f2 --upload-command 'ghdrop upload'
# Delete the newly created work item by its returned id after inspecting the proof.
