From 5533bbe388e0c3ab3a9144f3f2edb071130fd5a3 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Tue, 21 Nov 2023 10:07:21 +1100 Subject: [PATCH] fix: early-exit gptcc because it's a bit too enthusiastic See https://github.com/TBD54566975/ftl/pull/607 for an example :\ --- .github/workflows/cc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cc.yml b/.github/workflows/cc.yml index c1fc553105..1e13624edd 100644 --- a/.github/workflows/cc.yml +++ b/.github/workflows/cc.yml @@ -12,6 +12,7 @@ jobs: - uses: cashapp/activate-hermit@v1 - name: Update PR title run: | + gh pr view --json title -q .title | grep -qE '^(\w+)[:(]' && exit 0 modified="$(gptcc "$orig")" diff -u <(echo "$orig") <(echo "$modified") | tail +4 || true gh pr edit --title "$modified"