Skip to content

Commit a210f92

Browse files
feat: Build for release
1 parent ef6d054 commit a210f92

File tree

7 files changed

+249
-51
lines changed

7 files changed

+249
-51
lines changed

README.ja.md

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ Issue や Pull Request に Author をアサインする GitHub Actions です。
4444
steps:
4545
- name: Assign author to PR
4646
uses: technote-space/assign-author@v1
47-
with:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4947
```
5048
e.g. `.github/workflows/issues.yml`
5149
```yaml
@@ -60,8 +58,6 @@ Issue や Pull Request に Author をアサインする GitHub Actions です。
6058
steps:
6159
- name: Assign author to issue
6260
uses: technote-space/assign-author@v1
63-
with:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6561
```
6662

6763
## Action イベント詳細
@@ -73,31 +69,31 @@ Issue や Pull Request に Author をアサインする GitHub Actions です。
7369
|issues|opened|
7470
|issues|rerequested|
7571

76-
## このアクションを使用しているアクションの例
72+
## このアクションを使用しているリポジトリの例
7773
- [Release GitHub Actions](https://github.com/technote-space/release-github-actions)
78-
- [issue_opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/issue_opened.yml)
79-
- [pr_opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/pr_opened.yml)
74+
- [issue-opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/issue-opened.yml)
75+
- [pr-opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/pr-opened.yml)
8076
- [Auto card labeler](https://github.com/technote-space/auto-card-labeler)
81-
- [issue_opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/issue_opened.yml)
82-
- [pr_opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/pr_opened.yml)
77+
- [issue-opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/issue-opened.yml)
78+
- [pr-opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/pr-opened.yml)
8379
- [Assign Author](https://github.com/technote-space/assign-author)
84-
- [issue_opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/issue_opened.yml)
85-
- [pr_opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/pr_opened.yml)
80+
- [issue-opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/issue-opened.yml)
81+
- [pr-opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/pr-opened.yml)
8682
- [TOC Generator](https://github.com/technote-space/toc-generator)
87-
- [issue_opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/issue_opened.yml)
88-
- [pr_opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/pr_opened.yml)
83+
- [issue-opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/issue-opened.yml)
84+
- [pr-opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/pr-opened.yml)
8985
- [Package Version Check Action](https://github.com/technote-space/package-version-check-action)
90-
- [issue_opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/issue_opened.yml)
91-
- [pr_opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/pr_opened.yml)
86+
- [issue-opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/issue-opened.yml)
87+
- [pr-opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/pr-opened.yml)
9288
- [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)
89+
- [issue-opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/issue-opened.yml)
90+
- [pr-opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/pr-opened.yml)
9591
- [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)
92+
- [issue-opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/issue-opened.yml)
93+
- [pr-opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/pr-opened.yml)
9894
- [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)
95+
- [issue-opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/issue-opened.yml)
96+
- [pr-opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/pr-opened.yml)
10197

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

README.md

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
steps:
4545
- name: Assign author to PR
4646
uses: technote-space/assign-author@v1
47-
with:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4947
```
5048
e.g. `.github/workflows/issues.yml`
5149
```yaml
@@ -60,8 +58,6 @@
6058
steps:
6159
- name: Assign author to issue
6260
uses: technote-space/assign-author@v1
63-
with:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6561
```
6662

6763
## Action event details
@@ -73,31 +69,31 @@
7369
|issues|opened|
7470
|issues|rerequested|
7571

76-
## GitHub Actions using this Action
72+
## Example repositories using this Action
7773
- [Release GitHub Actions](https://github.com/technote-space/release-github-actions)
78-
- [issue_opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/issue_opened.yml)
79-
- [pr_opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/pr_opened.yml)
74+
- [issue-opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/issue-opened.yml)
75+
- [pr-opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/pr-opened.yml)
8076
- [Auto card labeler](https://github.com/technote-space/auto-card-labeler)
81-
- [issue_opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/issue_opened.yml)
82-
- [pr_opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/pr_opened.yml)
77+
- [issue-opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/issue-opened.yml)
78+
- [pr-opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/pr-opened.yml)
8379
- [Assign Author](https://github.com/technote-space/assign-author)
84-
- [issue_opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/issue_opened.yml)
85-
- [pr_opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/pr_opened.yml)
80+
- [issue-opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/issue-opened.yml)
81+
- [pr-opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/pr-opened.yml)
8682
- [TOC Generator](https://github.com/technote-space/toc-generator)
87-
- [issue_opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/issue_opened.yml)
88-
- [pr_opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/pr_opened.yml)
83+
- [issue-opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/issue-opened.yml)
84+
- [pr-opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/pr-opened.yml)
8985
- [Package Version Check Action](https://github.com/technote-space/package-version-check-action)
90-
- [issue_opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/issue_opened.yml)
91-
- [pr_opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/pr_opened.yml)
86+
- [issue-opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/issue-opened.yml)
87+
- [pr-opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/pr-opened.yml)
9288
- [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)
89+
- [issue-opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/issue-opened.yml)
90+
- [pr-opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/pr-opened.yml)
9591
- [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)
92+
- [issue-opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/issue-opened.yml)
93+
- [pr-opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/pr-opened.yml)
9894
- [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)
95+
- [issue-opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/issue-opened.yml)
96+
- [pr-opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/pr-opened.yml)
10197

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

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ author: technote-space
77
inputs:
88
GITHUB_TOKEN:
99
description: Secret GitHub API token to use for making API requests.
10+
default: ${{ github.token }}
1011
required: true
1112

1213
branding:

build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"owner":"technote-space","repo":"assign-author","sha":"28e5473b68c64ebe5f4ed53114116d9217a96e9c","ref":"refs/tags/test/v1.2.12.48562057","tagName":"test/v1.2.12.48562057","branch":"gh-actions","tags":["test/v1.2.12.48562057","test/v1.2.12","test/v1.2","test/v1"],"updated_at":"2020-03-03T03:09:13.350Z"}
1+
{"owner":"technote-space","repo":"assign-author","sha":"FETCH_HEAD","ref":"refs/heads/master","tagName":"test/v1.2.12","branch":"gh-actions","tags":["test/v1.2.12","test/v1.2","test/v1"],"updated_at":"2020-03-04T10:00:31.720Z"}

lib/constant.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
33
exports.TARGET_EVENTS = {
4-
'issues': ['opened', 'rerequested'],
5-
'pull_request': ['opened', 'rerequested'],
4+
'issues': ['opened', 'reopened'],
5+
'pull_request': ['opened', 'reopened'],
66
};

lib/main.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
88
step((generator = generator.apply(thisArg, _arguments || [])).next());
99
});
1010
};
11-
var __importDefault = (this && this.__importDefault) || function (mod) {
12-
return (mod && mod.__esModule) ? mod : { "default": mod };
13-
};
1411
Object.defineProperty(exports, "__esModule", { value: true });
15-
const path_1 = __importDefault(require("path"));
12+
const path_1 = require("path");
1613
const core_1 = require("@actions/core");
1714
const context_1 = require("@actions/github/lib/context");
1815
const filter_github_action_1 = require("@technote-space/filter-github-action");
@@ -22,7 +19,7 @@ const constant_1 = require("./constant");
2219
const run = () => __awaiter(void 0, void 0, void 0, function* () {
2320
const logger = new github_action_helper_1.Logger();
2421
const context = new context_1.Context();
25-
github_action_helper_1.ContextHelper.showActionInfo(path_1.default.resolve(__dirname, '..'), logger, context);
22+
github_action_helper_1.ContextHelper.showActionInfo(path_1.resolve(__dirname, '..'), logger, context);
2623
if (!filter_github_action_1.isTargetEvent(constant_1.TARGET_EVENTS, context)) {
2724
logger.info('This is not target event.');
2825
return;

0 commit comments

Comments
 (0)