Skip to content

Commit

Permalink
ci: Automatically prepend CC to GH PR title
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Nov 13, 2023
1 parent 58da187 commit aa9240f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- main
pull_request:
name: Conventional Commits
jobs:
cc:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: cashapp/activate-hermit@v1
- run: |
gh pr edit --title "$(gptcc '${{ github.event.pull_request.title }}')"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
1 change: 1 addition & 0 deletions bin/.gptcc-0.0.1.pkg
1 change: 1 addition & 0 deletions bin/gptcc

0 comments on commit aa9240f

Please sign in to comment.