From 93584d01ff4607024932e937987a54c6861a9a6d Mon Sep 17 00:00:00 2001 From: David Balatero Date: Mon, 7 Nov 2022 14:14:05 -0500 Subject: [PATCH 1/3] [skip ci] Initial commit From 727f90d312a65d9dff5501a0205ee6fa23fca19c Mon Sep 17 00:00:00 2001 From: David Balatero Date: Mon, 7 Nov 2022 14:15:32 -0500 Subject: [PATCH 2/3] Remove the toggle-able description --- bin/work | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/bin/work b/bin/work index 92844a3..84f30fc 100755 --- a/bin/work +++ b/bin/work @@ -546,12 +546,10 @@ function linear_description() { local linear_issue="$1" local auto_close="$2" - local description local identifier local title local url - description=$(echo "$linear_issue" | jq --raw-output ".description") identifier=$(echo "$linear_issue" | jq --raw-output ".identifier") title=$(echo "$linear_issue" | jq --raw-output ".title") url=$(echo "$linear_issue" | jq --raw-output ".url") @@ -562,17 +560,13 @@ function linear_description() { :sparkles: **$title** :globe_with_meridians: [$identifier]($url) -
- Description - -$(echo "$description" | indent " ") -
- EOF # Add a magic comment to the PR description if the --closes flag is passed. if [ "$auto_close" = "true" ]; then - echo "Closes $identifier" + echo "---" + echo + echo ":sparkles: Closes $identifier" fi } From 5770769937f4468d93239756e3b85e755932ab8c Mon Sep 17 00:00:00 2001 From: David Balatero Date: Mon, 7 Nov 2022 14:16:46 -0500 Subject: [PATCH 3/3] Remove descriptions from Linear tickets --- bin/work | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/work b/bin/work index 84f30fc..43c6207 100755 --- a/bin/work +++ b/bin/work @@ -21,7 +21,7 @@ command_ran="$(basename "$0") $*" script_args=("$@") function indent() { - local amount=${1:- } + local amount=" " sed 's/^/'"$amount"'/' }