adnjoo / xtrack

🫠
https://xtrack.ing
0 stars 0 forks source link

close all issues #254

Closed adnjoo closed 6 months ago

adnjoo commented 6 months ago
#!/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."