Skip to content

Commit aba6bd5

Browse files
feat: Build for release
1 parent 1a3d6a0 commit aba6bd5

File tree

98 files changed

+83522
-7351
lines changed

Some content is hidden

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

98 files changed

+83522
-7351
lines changed

README.ja.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
Issue や Pull Request に Author をアサインする GitHub Actions です。
1111

12+
## Table of Contents
13+
1214
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
1315
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
14-
**Table of Contents**
16+
<details>
17+
<summary>Details</summary>
1518

1619
- [スクリーンショット](#%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88)
1720
- [インストール](#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB)
@@ -20,6 +23,7 @@ Issue や Pull Request に Author をアサインする GitHub Actions です。
2023
- [このアクションを使用しているアクションの例](#%E3%81%93%E3%81%AE%E3%82%A2%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%82%A2%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E4%BE%8B)
2124
- [Author](#author)
2225

26+
</details>
2327
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2428

2529
## スクリーンショット
@@ -85,6 +89,15 @@ Issue や Pull Request に Author をアサインする GitHub Actions です。
8589
- [Package Version Check Action](https://github.com/technote-space/package-version-check-action)
8690
- [issue_opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/issue_opened.yml)
8791
- [pr_opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/pr_opened.yml)
92+
- [Get Diff Action](https://github.com/technote-space/get-diff-action)
93+
- [issue_opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/issue_opened.yml)
94+
- [pr_opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/pr_opened.yml)
95+
- [Create Project Card Action](https://github.com/technote-space/create-project-card-action)
96+
- [issue_opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/issue_opened.yml)
97+
- [pr_opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/pr_opened.yml)
98+
- [Get git comment action](https://github.com/technote-space/get-git-comment-action)
99+
- [issue_opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/issue_opened.yml)
100+
- [pr_opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/pr_opened.yml)
88101

89102
## Author
90103
[GitHub (Technote)](https://github.com/technote-space)

README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
`GitHub Actions` to assign author to issue or PR.
1111

12+
## Table of Contents
13+
1214
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
1315
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
14-
**Table of Contents**
16+
<details>
17+
<summary>Details</summary>
1518

1619
- [Screenshot](#screenshot)
1720
- [Installation](#installation)
@@ -20,6 +23,7 @@
2023
- [GitHub Actions using this Action](#github-actions-using-this-action)
2124
- [Author](#author)
2225

26+
</details>
2327
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2428

2529
## Screenshot
@@ -85,6 +89,15 @@
8589
- [Package Version Check Action](https://github.com/technote-space/package-version-check-action)
8690
- [issue_opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/issue_opened.yml)
8791
- [pr_opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/pr_opened.yml)
92+
- [Get Diff Action](https://github.com/technote-space/get-diff-action)
93+
- [issue_opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/issue_opened.yml)
94+
- [pr_opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/pr_opened.yml)
95+
- [Create Project Card Action](https://github.com/technote-space/create-project-card-action)
96+
- [issue_opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/issue_opened.yml)
97+
- [pr_opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/pr_opened.yml)
98+
- [Get git comment action](https://github.com/technote-space/get-git-comment-action)
99+
- [issue_opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/issue_opened.yml)
100+
- [pr_opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/pr_opened.yml)
88101

89102
## Author
90103
[GitHub (Technote)](https://github.com/technote-space)

build.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"owner":"technote-space","repo":"assign-author","sha":"0cc98f7f7ce38fac2c97edcfae4d009aa75165dc","ref":"refs/tags/v1.2.6","tagName":"v1.2.6","branch":"gh-actions","tags":["v1","v1.2","v1.2.6"],"updated_at":"2020-01-27T08:42:51.230Z"}
1+
{"owner":"technote-space","repo":"assign-author","sha":"ba9c2dbab42040dd7327496da234412862ffe19f","ref":"refs/tags/v1.2.7","tagName":"v1.2.7","branch":"gh-actions","tags":["v1.2.7","v1.2","v1"],"updated_at":"2020-02-06T09:38:47.341Z"}

lib/main.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
1414
Object.defineProperty(exports, "__esModule", { value: true });
1515
const path_1 = __importDefault(require("path"));
1616
const core_1 = require("@actions/core");
17-
const github_1 = require("@actions/github");
17+
const context_1 = require("@actions/github/lib/context");
1818
const filter_github_action_1 = require("@technote-space/filter-github-action");
1919
const github_action_helper_1 = require("@technote-space/github-action-helper");
20-
const context_1 = require("./utils/context");
21-
const github_2 = require("./utils/github");
20+
const process_1 = require("./process");
2221
const constant_1 = require("./constant");
2322
/**
2423
* run
2524
*/
2625
function run() {
2726
return __awaiter(this, void 0, void 0, function* () {
2827
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)) {
28+
const context = new context_1.Context();
29+
github_action_helper_1.ContextHelper.showActionInfo(path_1.default.resolve(__dirname, '..'), logger, context);
30+
if (!filter_github_action_1.isTargetEvent(constant_1.TARGET_EVENTS, context)) {
3131
logger.info('This is not target event.');
3232
return;
3333
}
34-
yield github_2.addAssignees(context_1.getAssignees(github_1.context), new github_1.GitHub(github_action_helper_1.Utils.getAccessToken(true)), logger, github_1.context);
34+
yield process_1.execute(logger, github_action_helper_1.Utils.getOctokit(), context);
3535
});
3636
}
3737
run().catch(error => core_1.setFailed(error.message));

lib/process.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"use strict";
2+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4+
return new (P || (P = Promise))(function (resolve, reject) {
5+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8+
step((generator = generator.apply(thisArg, _arguments || [])).next());
9+
});
10+
};
11+
Object.defineProperty(exports, "__esModule", { value: true });
12+
const context_1 = require("./utils/context");
13+
const github_1 = require("./utils/github");
14+
exports.execute = (logger, octokit, context) => __awaiter(void 0, void 0, void 0, function* () { return github_1.addAssignees(context_1.getAssignees(context), octokit, logger, context); });

0 commit comments

Comments
 (0)