Skip to content

Commit

Permalink
fix: early-exit gptcc because it's a bit too enthusiastic
Browse files Browse the repository at this point in the history
See #607 for an example :\
  • Loading branch information
alecthomas committed Nov 20, 2023
1 parent 36579bc commit 5533bbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5533bbe

Please sign in to comment.