#!/bin/bash
# Replace 'owner/repo' with your repository's owner and name
REPO=adnjoo/xtrack
# Get the list of all open issues
issues=$(gh issue list -R $REPO --state open --json number -q '.[].number')
# Iterate through each issue and close it
for issue in $issues; do
echo "Closing issue #$issue"
gh issue close $issue -R $REPO
done
echo "All open issues have been closed."