Skip to content

Commit 188749f

Browse files
Create/migrate readme files (#9)
* Remove temporary exclusion for markdown files from .gitignore * Add README for AI-Assisted GitHub Actions Pull-Request Reviews * Add README for AI-Assisted GitHub Actions Pull-Request Summaries * Update README to enhance project description and usage instructions for AI-Assisted GitHub Actions * Update README files to include links to SAP AI Core service documentation for generative AI models * Update GitHub Actions references to use version 3 for PR summaries and reviews * Normalize capitalization in README titles for consistency across AI-assisted GitHub Actions documentation
1 parent 40cde57 commit 188749f

File tree

4 files changed

+688
-7
lines changed

4 files changed

+688
-7
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,3 @@ Thumbs.db
3737
!.vscode/settings.json
3838
!.vscode/launch.json
3939
*.code-workspace
40-
41-
# temporarily
42-
*.md

README.md

Lines changed: 88 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,100 @@
11
[![REUSE status](https://api.reuse.software/badge/github.com/SAP/ai-assisted-github-actions)](https://api.reuse.software/info/github.com/SAP/ai-assisted-github-actions)
22

3-
# ai-assisted-github-actions
3+
# AI-assisted GitHub Actions
44

5-
## About this project
5+
_Automate your PR workflow with GitHub Actions powered by SAP AI Core. Get instant summaries and reviews—no more manual grunt work._
66

7-
Automate your PR workflow with GitHub Actions powered by SAP AI Core. Get instant summaries and reviews—no more manual grunt work.
7+
Hey rudeGPT, review my Pull Request for "AI-assisted GitHub Actions"!
8+
9+
> Using AI to automate PR reviews, huh? Sounds like a bunch of nerds got tired of doing their jobs and decided to make a robot do it. But hey, if it works, it works. Just don't come crying to me when Skynet takes over and your precious AI starts rejecting all your PRs...
10+
11+
## Available Actions
12+
13+
The following GitHub Actions are available to assist with pull requests:
14+
15+
- **[Pull Request Summary](pr-summary)**
16+
This action calls SAP AI Core to create a comment with a summary of the pull request.
17+
Usage: `SAP/ai-assisted-github-actions/pr-summary@v3`
18+
- **[Pull Request Review](pr-review)**
19+
This action calls SAP AI Core to create a review of the pull request (as comment).
20+
Usage: `SAP/ai-assisted-github-actions/pr-review@v3`
21+
22+
These actions access [models available via _SAP AI Core Orchestration_ service](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/model-configuration).
823

924
## Requirements and Setup
1025

11-
*Insert a short description what is required to get your project running...*
26+
To get started, you'll need to configure both _GitHub Actions_ and _SAP AI Core_.
27+
28+
1. Activate **[GitHub Actions](https://github.com/features/actions)** for your repo
29+
30+
2. Create **[SAP AI Core Deployment for Orchestration](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-deployment-for-generative-ai-model-in-sap-ai-core)** and get your service key.
31+
32+
3. Store the full service key in a [GitHub secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) (e.g., `AICORE_SERVICE_KEY`).
33+
34+
<details>
35+
<summary>The service key looks like this (click to expand)</summary>
36+
37+
```json
38+
{
39+
"serviceurls": {
40+
"AI_API_URL": "..."
41+
},
42+
"appname": "...",
43+
"clientid": "...",
44+
"clientsecret": "...",
45+
"identityzone": "...",
46+
"identityzoneid": "...",
47+
"url": "..."
48+
}
49+
```
50+
51+
</details>
52+
53+
4. Create a [workflow file](https://docs.github.com/de/actions/get-started/quickstart) in your repository with a workflow configuration that uses this action.
54+
55+
## Usage
56+
57+
Create a GitHub Actions workflow file e.g., `.github/workflows/ai-assistance.yml`, with the following content:
58+
59+
```yaml
60+
name: AI-assisted
61+
on:
62+
pull_request:
63+
types: [ready_for_review]
64+
65+
jobs:
66+
summary:
67+
name: PR Summary
68+
runs-on: [ubuntu-latest]
69+
steps:
70+
- uses: SAP/ai-assisted-github-actions/pr-summary@v3
71+
with:
72+
aicore-service-key: ${{ secrets.AICORE_SERVICE_KEY }}
73+
model: gpt-4o
74+
exclude-files: package-lock.json
75+
review:
76+
name: PR Review
77+
runs-on: [ubuntu-latest]
78+
steps:
79+
- uses: SAP/ai-assisted-github-actions/pr-review@v3
80+
with:
81+
aicore-service-key: ${{ secrets.AICORE_SERVICE_KEY }}
82+
model: gpt-4o
83+
exclude-files: package-lock.json
84+
```
85+
86+
This action will be executed when a
87+
[pull request review is ready for review](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request). It will create a
88+
summary of the pull request as a comment as well as a pull request review.
89+
90+
- The `aicore-service-key` should be a valid service key for your _SAP AI Core_ service instance.
1291

1392
## Support, Feedback, Contributing
1493

1594
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/ai-assisted-github-actions/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](CONTRIBUTING.md).
1695

1796
## Security / Disclosure
97+
1898
If you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/SAP/ai-assisted-github-actions/security/policy) on how to report it. Please do not create GitHub issues for security-related doubts or problems.
1999

20100
## Code of Conduct
@@ -24,3 +104,7 @@ We as members, contributors, and leaders pledge to make participation in our com
24104
## Licensing
25105

26106
Copyright 2025 SAP SE or an SAP affiliate company and ai-assisted-github-actions contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/ai-assisted-github-actions).
107+
108+
---
109+
110+
> Remember, no AI can replace the keen eye of a seasoned developer... yet.

0 commit comments

Comments
 (0)