Skip to content

Commit 1f51b93

Browse files
feat: Build for release
1 parent d2fce08 commit 1f51b93

File tree

164 files changed

+57288
-5273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+57288
-5273
lines changed

build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"tagName":"v1.2.2","branch":"gh-actions","tags":["v1","v1.2","v1.2.2"],"updated_at":"2019-10-20T09:35:41.957Z"}
1+
{"owner":"technote-space","repo":"assign-author","sha":"51ec438c6c7c0f2719891e807da8e149470a243f","ref":"refs/tags/test/v1.2.3","tagName":"test/v1.2.3","branch":"gh-actions","tags":["test/v1","test/v1.2","test/v1.2.3"],"updated_at":"2019-11-23T08:27:06.073Z"}

lib/main.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,18 @@ const github_action_helper_1 = require("@technote-space/github-action-helper");
2020
const context_1 = require("./utils/context");
2121
const github_2 = require("./utils/github");
2222
const constant_1 = require("./constant");
23-
const { showActionInfo } = github_action_helper_1.Utils;
2423
/**
2524
* run
2625
*/
2726
function run() {
2827
return __awaiter(this, void 0, void 0, function* () {
29-
try {
30-
const logger = new github_action_helper_1.Logger();
31-
showActionInfo(path_1.default.resolve(__dirname, '..'), logger, github_1.context);
32-
if (!filter_github_action_1.isTargetEvent(constant_1.TARGET_EVENTS, github_1.context)) {
33-
logger.info('This is not target event.');
34-
return;
35-
}
36-
yield github_2.addAssignees(context_1.getAssignees(github_1.context), new github_1.GitHub(core_1.getInput('GITHUB_TOKEN', { required: true })), logger, github_1.context);
37-
}
38-
catch (error) {
39-
core_1.setFailed(error.message);
28+
const logger = new github_action_helper_1.Logger();
29+
github_action_helper_1.ContextHelper.showActionInfo(path_1.default.resolve(__dirname, '..'), logger, github_1.context);
30+
if (!filter_github_action_1.isTargetEvent(constant_1.TARGET_EVENTS, github_1.context)) {
31+
logger.info('This is not target event.');
32+
return;
4033
}
34+
yield github_2.addAssignees(context_1.getAssignees(github_1.context), new github_1.GitHub(core_1.getInput('GITHUB_TOKEN', { required: true })), logger, github_1.context);
4135
});
4236
}
43-
run();
37+
run().catch(error => core_1.setFailed(error.message));

lib/utils/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const getCurrentAssignees = (context) => {
1111
return false;
1212
};
1313
exports.getAssignees = (context) => {
14-
const sender = github_action_helper_1.Utils.getSender(context);
14+
const sender = github_action_helper_1.ContextHelper.getSender(context);
1515
if (false === sender) {
1616
return false;
1717
}

node_modules/.yarn-integrity

Lines changed: 115 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@octokit/endpoint/README.md

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@octokit/endpoint/dist-node/index.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@octokit/endpoint/dist-node/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.

node_modules/@octokit/endpoint/dist-src/defaults.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@octokit/endpoint/dist-src/generated/routes.js

Whitespace-only changes.

node_modules/@octokit/endpoint/dist-src/parse.js

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)