Skip to content

Commit

Permalink
feat: add checkrun details url
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeciubotaru committed Jun 3, 2024
1 parent dab99cb commit 5189fb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/server/trigger-dev/jobs/check-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ async function getPrInfoByCheckRunNodeId<T extends Octokit>(
(p) => Number(p?.fullDatabaseId) === Number(parsedDBId)
);
if (found) {
return { id: found.id, number: found?.number, fullDatabaseId: found.fullDatabaseId };
return { id: found?.id, number: found?.number, fullDatabaseId: found?.fullDatabaseId };
}
} else {
throw new Error('failed to get pull request');
Expand Down
3 changes: 2 additions & 1 deletion src/lib/server/trigger-dev/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ const createCheckRunIfNotExists = async (
owner: org.name,
repo: repoName,
head_sha: pull_request.head.sha,
name: submissionCheckName(senderLogin)
name: submissionCheckName(senderLogin),
details_url: `https://pr-time-tracker.vercel.app/prs/${org.name}/${repoName}/${pull_request.id}`
})
.catch((err) => ({ error: err }));
} else {
Expand Down

0 comments on commit 5189fb8

Please sign in to comment.