Automate your PR workflow with GitHub Actions powered by SAP AI Core. Get instant summaries and reviews—no more manual grunt work.
The following GitHub Actions are available to assist with pull requests:
- Pull Request Summary
This action calls SAP AI Core to create a comment with a summary of the pull request.
Usage:SAP/ai-assisted-github-actions/pr-summary@v3
- Pull Request Review
This action calls SAP AI Core to create a review of the pull request (as comment).
Usage:SAP/ai-assisted-github-actions/pr-review@v3
These actions access models available via SAP AI Core Orchestration service.
To get started, you'll need to configure both GitHub Actions and SAP AI Core.
-
Activate GitHub Actions for your repo
-
Create SAP AI Core Deployment for Orchestration and get your service key.
-
Store the full service key in a GitHub secret (e.g.,
AICORE_SERVICE_KEY
).The service key looks like this (click to expand)
{ "serviceurls": { "AI_API_URL": "..." }, "appname": "...", "clientid": "...", "clientsecret": "...", "identityzone": "...", "identityzoneid": "...", "url": "..." }
-
Create a workflow file in your repository with a workflow configuration that uses this action.
Create a GitHub Actions workflow file e.g., .github/workflows/ai-assistance.yml
, with the following content:
name: AI-assisted
on:
pull_request:
types: [ready_for_review]
jobs:
summary:
name: PR Summary
runs-on: [ubuntu-latest]
steps:
- uses: SAP/ai-assisted-github-actions/pr-summary@v3
with:
aicore-service-key: ${{ secrets.AICORE_SERVICE_KEY }}
model: gpt-4o
exclude-files: package-lock.json
review:
name: PR Review
runs-on: [ubuntu-latest]
steps:
- uses: SAP/ai-assisted-github-actions/pr-review@v3
with:
aicore-service-key: ${{ secrets.AICORE_SERVICE_KEY }}
model: gpt-4o
exclude-files: package-lock.json
This action will be executed when a pull request review is ready for review. It will create a summary of the pull request as a comment as well as a pull request review.
- The
aicore-service-key
should be a valid service key for your SAP AI Core service instance.
This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
If you find any bug that may be a security problem, please follow our instructions at in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.
As a SAP employee, please check out and use our internal integrated solution for pull request automation.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2025 SAP SE or an SAP affiliate company and ai-assisted-github-actions contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.