diff --git a/.github/workflows/gpt-commit-summarizer.yml b/.github/workflows/gpt-commit-summarizer.yml new file mode 100644 index 0000000..e2d910e --- /dev/null +++ b/.github/workflows/gpt-commit-summarizer.yml @@ -0,0 +1,17 @@ +name: GPT Commits summarizer +# Summary: This action will write a comment about every commit in a pull request, as well as generate a summary for every file that was modified and add it to the review page, compile a PR summary from all commit summaries and file diff summaries, and delete outdated code review comments + +on: + pull_request: + types: [opened, synchronize] + +jobs: + summarize: + runs-on: ubuntu-latest + permissions: write-all # Some repositories need this line + + steps: + - uses: KanHarI/gpt-commit-summarizer@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}