Skip to content

Commit

Permalink
undef
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Jan 14, 2025
1 parent e5af26a commit 1d884ee
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 16 deletions.
27 changes: 19 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40234,16 +40234,27 @@ axios.interceptors.response.use(
// core.setOutput("success", isPassed);

// create a github check for this run
let octokit = getOctokit(personalAccessToken);

let res = await octokit.rest.repos.createCommitStatus({
let octokit = getOctokit(personalAccessToken)
let res = await octokit.rest.checks.create({
owner: config.githubContext.owner,
repo: config.githubContext.repo,
sha: config.githubContext.sha,
state: "success",
target_url: 'https://example.com/build/status',
description: "The build succeeded!",
context: "continuous-integration/testdriver",
name: "TestDriver.ai",
head_sha: config.githubContext.head_ref || config.githubContext.sha,
status: "completed",
conclusion: "success",
output: {
title: "TestDriver.ai Results",
summary: 'demo',
text: 'dmeo',
details_url: 'demo',
images: [
{
alt: "Dashcam.io Recording",
image_url: 'https://i.sstatic.net/SYZFJ.png?s=64',
},
],
},
});

console.log(res);
Expand Down
27 changes: 19 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,27 @@ axios.interceptors.response.use(
// core.setOutput("success", isPassed);

// create a github check for this run
let octokit = getOctokit(personalAccessToken);

let res = await octokit.rest.repos.createCommitStatus({
let octokit = getOctokit(personalAccessToken)
let res = await octokit.rest.checks.create({
owner: config.githubContext.owner,
repo: config.githubContext.repo,
sha: config.githubContext.sha,
state: "success",
target_url: 'https://example.com/build/status',
description: "The build succeeded!",
context: "continuous-integration/testdriver",
name: "TestDriver.ai",
head_sha: config.githubContext.head_ref || config.githubContext.sha,
status: "completed",
conclusion: "success",
output: {
title: "TestDriver.ai Results",
summary: 'demo',
text: 'dmeo',
details_url: 'demo',
images: [
{
alt: "Dashcam.io Recording",
image_url: 'https://i.sstatic.net/SYZFJ.png?s=64',
},
],
},
});

console.log(res);
Expand Down

0 comments on commit 1d884ee

Please sign in to comment.