"""Read the two real GitLab MRs; omit account and infrastructure metadata."""
import json
import subprocess
import sys

project_id = sys.argv[1]
items = json.loads(subprocess.check_output(['glab', 'api', f'projects/{project_id}/merge_requests']))
by_iid = {item['iid']: item for item in items}
print(json.dumps({
    'base': {'sha': 'e9e7599c55ab92b8fcf7bd366ab222d4e782f2c2',
             'title': by_iid[2]['title'], 'description': by_iid[2]['description']},
    'head': {'sha': 'bca2ecec6e7a3246a1622f6b225e0e023dcb2b3f',
             'title': by_iid[1]['title'], 'description': by_iid[1]['description']},
    'customInstructions': 'Always leave the PR/MR description completely empty. Do not include headings, summaries, testing notes, or attribution.'
}, indent=2))
