From 276186ca2d8fbc44cdf5faa49b557e152a194b4e Mon Sep 17 00:00:00 2001 From: Topher Brown <206988+topher200@users.noreply.github.com> Date: Sun, 11 Feb 2024 13:47:28 -0500 Subject: [PATCH] Snippet cleanup (#254) --- files/.config/pet/snippet.toml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/files/.config/pet/snippet.toml b/files/.config/pet/snippet.toml index b84c05e0..34923823 100644 --- a/files/.config/pet/snippet.toml +++ b/files/.config/pet/snippet.toml @@ -193,11 +193,6 @@ command = "echo $?" output = "" -[[snippets]] - description = "set local heroku environment vars for release deployment" - command = "$ PROD_SHA=$(git rev-parse --short=9 $(heroku releases --app memfault-prod | grep Deploy | head -n 1 | perl -wne '/Deploy (\\S+)/ and print $1')) && STAGING_SHA=$(git rev-parse --short=9 $(heroku releases --app memfault-staging | grep Deploy | head -n 1 | perl -wne '/Deploy (\\S+)/ and print $1')) && echo 'PROD_SHA : '$PROD_SHA && echo 'STAGING_SHA: '$STAGING_SHA" - output = "" - [[snippets]] description = "run terraform validate in all subdirectories" command = "find . -type d -execdir sh -c \"pwd && terraform init && terraform validate\" \\;" @@ -260,7 +255,7 @@ [[snippets]] description = "get all commits / PRs which are in master but not yet released to prod" - command = "git log --oneline --no-decorate $(inv sheriff.release-current --app memfault-prod)..origin/master" + command = "git log --oneline --no-decorate $(aws-vault exec memfault-prod -- inv sheriff.release-current)..origin/master" output = "" [[snippets]] @@ -290,5 +285,10 @@ [[snippets]] description = "status of all celery queues rabbitmq env vars" - command = "inv deploy.env-var-get --app memfault-prod --vars CELERY_WORKER_S_QUEUE,CELERY_WORKER_L_QUEUE,CELERY_WORKER_BEE_QUEUE" + command = "aws-vault exec memfault-prod -- inv deploy.env-var-get --vars CELERY_WORKER_S_QUEUE,CELERY_WORKER_L_QUEUE,CELERY_WORKER_BEE_QUEUE" + output = "" + +[[snippets]] + description = "copy github url of current pr" + command = "gh pr view --json url --jq .url | tee >(xsel -b)" output = ""