Skip to content

Commit d63b399

Browse files
committed
Build action
1 parent 4920302 commit d63b399

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

dist/approver/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63645,13 +63645,15 @@ function run() {
6364563645
if (!repoName)
6364663646
throw new Error('No repo name found');
6364763647
const githubToken = (0, lib_1.required)('GITHUB_TOKEN');
63648+
const message = (0, lib_1.required)('message');
6364863649
const octokit = new lib_1.Octokit({ auth: githubToken });
63650+
const dashboardLink = '[dashboard](https://codeball.ai/' + process.env.GITHUB_REPOSITORY + ')';
6364963651
yield octokit.pulls.createReview({
6365063652
owner: repoOwner,
6365163653
repo: repoName,
6365263654
pull_number: pullRequestNumber,
6365363655
commit_id: commitId,
63654-
body: 'Codeball: LGTM! :+1:',
63656+
body: message + ' (' + dashboardLink + ')',
6365563657
event: 'APPROVE'
6365663658
});
6365763659
});

dist/approver/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/baller/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63646,7 +63646,10 @@ function run() {
6364663646
run()
6364763647
.then(({ jobId }) => __awaiter(void 0, void 0, void 0, function* () {
6364863648
yield (0, track_1.track)({ jobID: jobId, actionName: 'baller' });
63649-
core.setOutput('codeball-job-id', jobId);
63649+
yield core.setOutput('codeball-job-id', jobId);
63650+
core.summary
63651+
.addLink('Codeball Dashboard for ' + process.env.GITHUB_REPOSITORY, 'https://codeball.ai/' + process.env.GITHUB_REPOSITORY)
63652+
.write();
6365063653
}))
6365163654
.catch((error) => __awaiter(void 0, void 0, void 0, function* () {
6365263655
yield (0, track_1.track)({ actionName: 'baller', error: error.message });

dist/baller/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)