Skip to content

Instantly share code, notes, and snippets.

@HananoshikaYomaru
Created June 15, 2023 03:52
Show Gist options
  • Save HananoshikaYomaru/11d7bafcfcbb95327b3ab8283476abe1 to your computer and use it in GitHub Desktop.
Save HananoshikaYomaru/11d7bafcfcbb95327b3ab8283476abe1 to your computer and use it in GitHub Desktop.
remove eas branch
#!/bin/bash
# Define the list of branch names start with pr-
words=($(eas channel:list --json --non-interactive | jq -r ".currentPage[].name" | grep pr-))
# Loop over the filtered words and run the commands
for word in "${words[@]}"; do
eas channel:delete $word --non-interactive
eas branch:delete $word --non-interactive
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment