diff --git a/local-app/git-xargs/get-module-details.sh b/local-app/git-xargs/get-module-details.sh new file mode 100755 index 00000000..a6a26162 --- /dev/null +++ b/local-app/git-xargs/get-module-details.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +NAME="get-module-details" + +LOGFILE="/tmp/output.$NAME.git-xargs.${XARGS_REPO_NAME}.log" +REPO="$XARGS_REPO_OWNER/$XARGS_REPO_NAME" +echo "# $REPO" |& tee -a $LOGFILE + +# enter command(s) to read something from repo +# git grep --all-match -e security_group_ -e source.*efs -n |& tee -a $LOGFILE + +pwd |& tee -a $LOGFILE + +echo "source=aws-vpc-setup" |& tee -a $LOGFILE +git grep source.*aws-vpc-setup |& tee -a $LOGFILE + +echo "source=aws-info-setup" |& tee -a $LOGFILE +git grep source.*aws-inf-setup |& tee -a $LOGFILE + +echo "" |& tee -a $LOGFILE diff --git a/local-app/git-xargs/submit.get-module-details.sh b/local-app/git-xargs/submit.get-module-details.sh new file mode 100755 index 00000000..f1907309 --- /dev/null +++ b/local-app/git-xargs/submit.get-module-details.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# template for a read-access operation + +SCRIPT="get-module-details" +READ_MESSAGE="[xargs] $SCRIPT" + +GITHUB_HOSTNAME=github.e.it.census.gov GITHUB_OAUTH_TOKEN=ae2f950f5d628d665e6498bc699cdf24566bd94c git-xargs \ + --branch-name master \ + --skip-pull-requests \ + --commit-message "$READ_MESSAGE" \ + --no-skip-ci \ + --dry-run \ + --repos tf-repo.all.txt \ + "$(pwd)/$SCRIPT.sh" |& tee $SCRIPT.sh.$(date +%s).log + +mkdir -p $SCRIPT