DEV Community

Karthikeyan
Karthikeyan

Posted on

2 1

PR Summary using Open AI and Github actions

What I built

PR Summary is a GitHub Action that generates a summary of a pull request (PR) and adds it as a comment to the PR. The summary includes the PR title, description, and a generated summary of the changes made in the PR.

Category Submission:

Maintainers Must-Have: Make the lives of Open Source maintainers easier.

App Link

https://github.com/skarthikeyan96/PR-Summary

How to use the action



name: PR summary
on:
pull_request:
types:
- "opened"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Use Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install deps
run: npm install
- name: Run PR summary action
uses: skarthikeyan96/typescript-custom-action@0.0.1
with:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Enter fullscreen mode Exit fullscreen mode




Screenshots

description

Permissive License

MIT

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay