mirror of
https://github.com/markwylde/claude-code-gitea-action.git
synced 2026-06-21 22:50:33 +08:00
"View job run" link in Claude's comment points to an unrelated, older run (#18)
Co-authored-by: Dennis <dennis@bos.local>
This commit is contained in:
@@ -32,7 +32,7 @@ async function run() {
|
|||||||
const client = createClient(githubToken);
|
const client = createClient(githubToken);
|
||||||
|
|
||||||
const serverUrl = GITEA_SERVER_URL;
|
const serverUrl = GITEA_SERVER_URL;
|
||||||
const jobUrl = `${serverUrl}/${owner}/${repo}/actions/runs/${process.env.GITHUB_RUN_NUMBER}`;
|
const jobUrl = `${serverUrl}/${owner}/${repo}/actions/runs/${process.env.GITHUB_RUN_ID}`;
|
||||||
|
|
||||||
let comment;
|
let comment;
|
||||||
let isPRReviewComment = false;
|
let isPRReviewComment = false;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export function parseGitHubContext(): ParsedGitHubContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const commonFields = {
|
const commonFields = {
|
||||||
runId: process.env.GITHUB_RUN_NUMBER!,
|
runId: process.env.GITHUB_RUN_ID!,
|
||||||
eventName: context.eventName,
|
eventName: context.eventName,
|
||||||
eventAction: context.payload.action,
|
eventAction: context.payload.action,
|
||||||
repository: {
|
repository: {
|
||||||
|
|||||||
Reference in New Issue
Block a user