Skip to content

Commit 0076ed8

Browse files
committed
fix: update repository URL handling and redact author emails in commit context
1 parent 19ca90d commit 0076ed8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release-on-tag.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
import os
162162
import textwrap
163163
import urllib.request
164-
from pathlib import Path
164+
REPO_URL = f"https://github.com/{os.environ['GITHUB_REPOSITORY']}"
165165
166166
REPO_URL = "https://github.com/Zzackllack/AniBridge"
167167
CONTEXT_PATH = Path("release-context/commit_context.json")
@@ -188,10 +188,11 @@ jobs:
188188
date_iso = entry.get("date", "")
189189
commit_hash = entry.get("commit", "")
190190
url = f"{REPO_URL}/commit/{commit_hash}"
191+
author_name = (author.get("name") or "").strip() # Redact emails before sending to Gemini
191192
blob = {
192193
"subject": subject,
193194
"body": body,
194-
"author": f"{author.get('name', '')} <{author.get('email', '')}>".strip(),
195+
"author": author_name,
195196
"date": date_iso,
196197
"url": url,
197198
}

0 commit comments

Comments
 (0)