Created
June 15, 2023 03:52
-
-
Save HananoshikaYomaru/11d7bafcfcbb95327b3ab8283476abe1 to your computer and use it in GitHub Desktop.
remove eas branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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