updated github_foreach_repo.sh

pull/2/head
Hari Sekhon 3 years ago
parent 09cff8197a
commit 096d894a22

@ -31,6 +31,7 @@ All arguments become the command template
The command template replaces the following for convenience in each iteration:
{owner} => the user or organization that owns the repo
{organization}, {org} => the organization account being iterated
{username}, {user} => the user account being iterated
{name} => the repo name without the user prefix
@ -61,6 +62,7 @@ while read -r name; do
echo "# $repo" >&2
echo "# ============================================================================ #" >&2
cmd="$cmd_template"
cmd="${cmd//\{owner\}/$user_or_org}"
cmd="${cmd//\{username\}/${user:-}}"
cmd="${cmd//\{user\}/${user:-}}"
cmd="${cmd//\{organization\}/${GITHUB_ORGANIZATION:-}}"

Loading…
Cancel
Save