Skip to content

Commit

Permalink
feat: build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 11, 2020
1 parent 72a6913 commit e8aa844
Show file tree
Hide file tree
Showing 24 changed files with 25,626 additions and 3,498 deletions.
4 changes: 3 additions & 1 deletion README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
|COMMIT_MESSAGE|コミットメッセージ|`docs: update TOC`|true|`feat: update TOC`|
|COMMIT_NAME|コミット時に設定する名前|`${github.actor}`| | |
|COMMIT_EMAIL|コミット時に設定するメールアドレス|`${github.actor}@users.noreply.github.com`| | |
|CREATE_PR|プルリクエストを作成するかどうか|`true`| |`false`|
|PR_BRANCH_PREFIX|プルリクエストのブランチプリフィックス|`toc-generator/`|true| |
|PR_BRANCH_NAME|プルリクエストのブランチ名<br>[Context variables](#context-variables)|`update-toc-${PR_ID}`|true|`toc-${PR_NUMBER}`|
|PR_TITLE|プルリクエストのタイトル<br>[Context variables](#context-variables)|`docs: update TOC (${PR_MERGE_REF})`|true|`feat: update TOC`|
Expand Down Expand Up @@ -124,7 +125,8 @@ GitHub Actions で提供される`GITHUB_TOKEN`は連続するイベントを作
```

### プルリクエストの作成
下のyamlのように`pull_request`イベントを設定した場合、変更はプルリクエストにコミットされます。
`CREATE_PR` に `true` (default) を設定 かつ `pull_request` イベントを設定した場合は、変更はプルリクエストにコミットされます。

```yaml
on: pull_request
name: TOC Generator
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ e.g. `README.md`
|COMMIT_MESSAGE|Commit message|`docs: update TOC`|true|`feat: update TOC`|
|COMMIT_NAME|Git commit name|`${github.actor}`| | |
|COMMIT_EMAIL|Git commit email|`${github.actor}@users.noreply.github.com`| | |
|CREATE_PR|Whether to create PullRequest|`true`| |`false`|
|PR_BRANCH_PREFIX|PullRequest branch prefix|`toc-generator/`|true| |
|PR_BRANCH_NAME|PullRequest branch name<br>[Context variables](#context-variables)|`update-toc-${PR_ID}`|true|`toc-${PR_NUMBER}`|
|PR_TITLE|PullRequest title<br>[Context variables](#context-variables)|`docs: update TOC (${PR_MERGE_REF})`|true|`feat: update TOC`|
Expand Down Expand Up @@ -125,7 +126,8 @@ If you want to trigger actions, use a personal access token instead.
```

### Create PullRequest
If you set `pull_request` event like following yaml, changes will be committed to PullRequest.
If you set `CREATE_PR` to `true` (default) and set `pull_request` event, changes will be committed to PullRequest.

```yaml
on: pull_request
name: TOC Generator
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ inputs:
default: ''
required: false

CREATE_PR:
description: Whether to create PullRequest.
default: 'true'
required: false
PR_BRANCH_PREFIX:
description: PullRequest branch prefix.
default: 'toc-generator/'
Expand Down
2 changes: 1 addition & 1 deletion build.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"owner":"technote-space","repo":"toc-generator","sha":"4d5bcbddd701058881b1f361683a83d5674f3adb","ref":"refs/tags/v2.3.4","tagName":"v2.3.4","branch":"gh-actions","tags":["v2.3.4","v2.3","v2"],"updated_at":"2020-04-10T14:33:49.321Z"}
{"owner":"technote-space","repo":"toc-generator","sha":"FETCH_HEAD","ref":"refs/heads/master","tagName":"test/v2.3.5","branch":"gh-actions","tags":["test/v2.3.5","test/v2.3","test/v2"],"updated_at":"2020-04-11T15:18:00.191Z"}
3 changes: 2 additions & 1 deletion lib/utils/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ exports.getRunnerArguments = () => {
prBodyForComment: core_1.getInput('PR_COMMENT_BODY'),
prCloseMessage: core_1.getInput('PR_CLOSE_MESSAGE'),
filterGitStatus: 'M',
filterExtensions: ['md'],
filterExtensions: ['md', 'markdown'],
targetBranchPrefix: core_1.getInput('TARGET_BRANCH_PREFIX'),
includeLabels: github_action_helper_1.Utils.getArrayInput('INCLUDE_LABELS'),
targetEvents: constant_1.TARGET_EVENTS,
notCreatePr: !github_action_helper_1.Utils.getBoolValue(core_1.getInput('CREATE_PR')),
};
};
// eslint-disable-next-line no-magic-numbers
Expand Down
172 changes: 93 additions & 79 deletions node_modules/.yarn-integrity

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions node_modules/@octokit/types/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions node_modules/@octokit/types/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions node_modules/@octokit/types/src/RequestInterface.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@octokit/types/src/VERSION.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e8aa844

Please sign in to comment.