Skip to content

Commit

Permalink
Build action
Browse files Browse the repository at this point in the history
  • Loading branch information
krlvi committed Jun 13, 2022
1 parent 4920302 commit d63b399
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion dist/approver/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63645,13 +63645,15 @@ function run() {
if (!repoName)
throw new Error('No repo name found');
const githubToken = (0, lib_1.required)('GITHUB_TOKEN');
const message = (0, lib_1.required)('message');
const octokit = new lib_1.Octokit({ auth: githubToken });
const dashboardLink = '[dashboard](https://codeball.ai/' + process.env.GITHUB_REPOSITORY + ')';
yield octokit.pulls.createReview({
owner: repoOwner,
repo: repoName,
pull_number: pullRequestNumber,
commit_id: commitId,
body: 'Codeball: LGTM! :+1:',
body: message + ' (' + dashboardLink + ')',
event: 'APPROVE'
});
});
Expand Down
2 changes: 1 addition & 1 deletion dist/approver/index.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/baller/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63646,7 +63646,10 @@ function run() {
run()
.then(({ jobId }) => __awaiter(void 0, void 0, void 0, function* () {
yield (0, track_1.track)({ jobID: jobId, actionName: 'baller' });
core.setOutput('codeball-job-id', jobId);
yield core.setOutput('codeball-job-id', jobId);
core.summary
.addLink('Codeball Dashboard for ' + process.env.GITHUB_REPOSITORY, 'https://codeball.ai/' + process.env.GITHUB_REPOSITORY)
.write();
}))
.catch((error) => __awaiter(void 0, void 0, void 0, function* () {
yield (0, track_1.track)({ actionName: 'baller', error: error.message });
Expand Down
2 changes: 1 addition & 1 deletion dist/baller/index.js.map

Large diffs are not rendered by default.

0 comments on commit d63b399

Please sign in to comment.