CI: Issue Change Requests
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user