From 8c72339e6528c48c4ef9e45af7cddd0a30040bab Mon Sep 17 00:00:00 2001 From: Luis Ball Date: Wed, 24 Nov 2021 10:37:35 -0800 Subject: [PATCH] fix: undo prefix argument usage There's an issue with certain PR titles and the `--prefix` argument. Investigating. --- .github/workflows/annotate.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/annotate.yml b/.github/workflows/annotate.yml index 1cd4ed3..e5eb90c 100644 --- a/.github/workflows/annotate.yml +++ b/.github/workflows/annotate.yml @@ -22,4 +22,6 @@ jobs: GHSTACK_TARGET_REPOSITORY: luqven/gh-stack GHSTACK_OAUTH_TOKEN: ${{ secrets.PAT }} run: | - gh-stack annotate "$PR_TITLE" --prefix '[]' --ci + PR_TITLE=$(echo "$PR_TITLE" | cut -d "]" -f 1) + PR_TITLE=$(echo $PR_TITLE | sed 's/[][]//g') + gh-stack annotate "$PR_TITLE" --ci