@anilanar/moxci
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -44,3 +44,3 @@ "use strict"; | ||
exports.notifyGithubPr = function (_a) { | ||
var owner = _a.owner, repo = _a.repo, token = _a.token, artifactUrl = _a.artifactUrl, sha = _a.sha; | ||
var owner = _a.owner, repo = _a.repo, token = _a.token, artifactUrl = _a.artifactUrl, job = _a.job, sha = _a.sha; | ||
return __awaiter(_this, void 0, void 0, function () { | ||
@@ -56,4 +56,4 @@ var octokit; | ||
state: "success", | ||
context: "Storybook is ready!", | ||
description: "Click details to go to the storybook." | ||
context: job + " artifact is ready!", | ||
description: "Click details to see in the browser." | ||
})]; | ||
@@ -60,0 +60,0 @@ }); |
@@ -42,7 +42,7 @@ "use strict"; | ||
exports.moxci = function (targetPath, options) { return __awaiter(_this, void 0, void 0, function () { | ||
var _a, CIRCLE_BUILD_NUM, GITHUB_TOKEN, CIRCLE_TOKEN, CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME, CIRCLE_SHA1, circleciApiUrl, artifactUrl; | ||
var _a, CIRCLE_BUILD_NUM, GITHUB_TOKEN, CIRCLE_TOKEN, CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME, CIRCLE_SHA1, CIRCLE_JOB, circleciApiUrl, artifactUrl; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
_a = process.env, CIRCLE_BUILD_NUM = _a.CIRCLE_BUILD_NUM, GITHUB_TOKEN = _a.GITHUB_TOKEN, CIRCLE_TOKEN = _a.CIRCLE_TOKEN, CIRCLE_PROJECT_USERNAME = _a.CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME = _a.CIRCLE_PROJECT_REPONAME, CIRCLE_SHA1 = _a.CIRCLE_SHA1; | ||
_a = process.env, CIRCLE_BUILD_NUM = _a.CIRCLE_BUILD_NUM, GITHUB_TOKEN = _a.GITHUB_TOKEN, CIRCLE_TOKEN = _a.CIRCLE_TOKEN, CIRCLE_PROJECT_USERNAME = _a.CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME = _a.CIRCLE_PROJECT_REPONAME, CIRCLE_SHA1 = _a.CIRCLE_SHA1, CIRCLE_JOB = _a.CIRCLE_JOB; | ||
// Validation | ||
@@ -80,2 +80,3 @@ if (!CIRCLE_PROJECT_USERNAME) { | ||
token: GITHUB_TOKEN, | ||
job: CIRCLE_JOB || "#unknown", | ||
artifactUrl: artifactUrl | ||
@@ -82,0 +83,0 @@ }); |
{ | ||
"name": "@anilanar/moxci", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "tool to notify circleci build artifacts as a github commit status.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/anilanar/moxci#readme", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17512
256