CI: Issue Change Requests
All checks were successful
Gemini Writing Review / gemini-review (pull_request) Successful in 1m23s
Word Count / count-words (pull_request) Successful in 35s

This commit is contained in:
2026-02-28 11:10:31 +01:00
parent b1ee047562
commit 4d6906e5b4
2 changed files with 14 additions and 11 deletions

View File

@@ -17,8 +17,8 @@ func main() {
repoFullName := os.Getenv("GITHUB_REPOSITORY")
prNumberStr := os.Getenv("PR_NUMBER")
if token == "" || prNumberStr == "" {
log.Fatal("Missing required environment variables: GEMINI_API_KEY, GITEA_TOKEN, GITHUB_REPOSITORY, PR_NUMBER")
if token == "" || repoFullName == "" || prNumberStr == "" {
log.Fatal("Missing required environment variables: GITEA_TOKEN, GITHUB_REPOSITORY, PR_NUMBER")
}
if baseURL == "" {
@@ -65,7 +65,7 @@ func main() {
}
if len(counts) > 0 {
commentBody := "### 🤖 Gemini Writing Review\n\n" + strings.Join(counts, "\n\n---\n\n")
commentBody := "### 🤖 Word Count Report\n\n" + strings.Join(counts, "\n\n---\n\n")
_, _, err = client.CreateIssueComment(owner, repo, prNumber, gitea.CreateIssueCommentOption{
Body: commentBody,
})