Skip to content

Instantly share code, notes, and snippets.

@cicorias
Created November 5, 2020 03:04
Show Gist options
  • Save cicorias/d417e1c559962f9a91801dbd0df8224b to your computer and use it in GitHub Desktop.
Save cicorias/d417e1c559962f9a91801dbd0df8224b to your computer and use it in GitHub Desktop.
create GitHub issues from the command line with a file
#!/usr/bin/env bash
filename='reqs.txt'
echo Start
while read p; do
title=$(echo "$p" | cut -d, -f1)
body=$(echo "$p" | cut -d, -f2)
gh issue create --title "$title" --body "$body" --label "enhancement"
done < $filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment