feat: test-generation + issue/PR summary via slash commands (/gen-tests, /summarize)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
# Holt die komplette Logik zentral aus user2595/ci-ai (reusable workflows) — keine
|
||||
# Skripte/Workflows ins Repo kopieren. Update der Logik passiert einmal in ci-ai.
|
||||
#
|
||||
# Features:
|
||||
# - security : Gitleaks + Trivy, hart blockierend (push/PR)
|
||||
# - review : KI-PR-Review + Summary (PR)
|
||||
# - commands : Slash-Commands im Kommentar — `/gen-tests`, `/summarize`
|
||||
#
|
||||
# Voraussetzungen (einmalig zentral eingerichtet):
|
||||
# 1. Runner instanzweit registriert (Label `eulernest`)
|
||||
# 2. anonymer Clone für public Repos erlaubt
|
||||
@@ -17,9 +22,12 @@ on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main, master]
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
security:
|
||||
if: github.event_name != 'issue_comment'
|
||||
uses: user2595/ci-ai/.gitea/workflows/reusable-security.yml@main
|
||||
secrets: inherit
|
||||
|
||||
@@ -27,3 +35,11 @@ jobs:
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: user2595/ci-ai/.gitea/workflows/reusable-ai-review.yml@main
|
||||
secrets: inherit
|
||||
|
||||
commands:
|
||||
if: >-
|
||||
github.event_name == 'issue_comment' &&
|
||||
(startsWith(github.event.comment.body, '/gen-tests') ||
|
||||
startsWith(github.event.comment.body, '/summarize'))
|
||||
uses: user2595/ci-ai/.gitea/workflows/reusable-commands.yml@main
|
||||
secrets: inherit
|
||||
|
||||
Reference in New Issue
Block a user