@@ -63,33 +63,34 @@ e.g. `README.md`
63
63

64
64
65
65
## Options
66
- | name | description | default | required | e.g. |
67
- |:---|:---|:---|:---|:---|
68
- |TARGET_PATHS|Target file path. (Comma separated, [Detail](https://github.com/thlorenz/doctoc#adding-toc-to-individual-files))|` README*.md`|true|`README*.md,CHANGELOG.md`, `.`|
69
- |TOC_TITLE|TOC Title|`**Table of Contents**`| |`''`|
70
- |MAX_HEADER_LEVEL|Maximum heading level. ([Detail](https://github.com/thlorenz/doctoc#specifying-a-maximum-heading-level-for-toc-entries))| | |`3`|
71
- |CUSTOM_MODE|Whether it is custom mode([Generated Example](samples/README.horizontal.md))|`false`| |`true`|
72
- |CUSTOM_TEMPLATE|Custom template for custom mode|`<p align="center">${ITEMS}</p>`| | |
73
- |ITEM_TEMPLATE|Item template for custom mode|`<a href="${LINK}">${TEXT}</a>`| | |
74
- |SEPARATOR|Separator for custom mode|<code>\<span>|\</span></code>| | |
75
- |FOLDING|Whether to make TOC foldable|`false`| |`true`|
76
- |COMMIT_MESSAGE|Commit message|`chore(docs) : update TOC`|true|`docs: update TOC`|
77
- |COMMIT_NAME|Git commit name|`${github.actor}`| | |
78
- |COMMIT_EMAIL|Git commit email|`${github.actor}@users.noreply.github.com`| | |
79
- |CREATE_PR|Whether to create PullRequest|`false`| |`true`|
80
- |CHECK_ONLY_DEFAULT_BRANCH|Whether to check only default branch|`false`| |`true`|
81
- |PR_BRANCH_PREFIX|PullRequest branch prefix|`toc-generator/`|true| |
82
- |PR_BRANCH_NAME|PullRequest branch name<br>[Context variables](#context-variables)|`update-toc-${PR_ID}`|true|`toc-${PR_NUMBER}`|
83
- |PR_TITLE|PullRequest title<br>[Context variables](#context-variables)|`chore(docs): update TOC (${PR_MERGE_REF})`|true|`docs: update TOC`|
84
- |PR_BODY|PullRequest body<br>[Context PR variables](#context-pr-variables)|[action.yml](action.yml)|true| |
85
- |PR_COMMENT_BODY|PullRequest body for comment<br>[Context PR variables](#context-pr-variables)|[action.yml](action.yml)| | |
86
- |PR_CLOSE_MESSAGE|Message body when closing PullRequest|`This PR has been closed because it is no longer needed.`| | |
87
- |TARGET_BRANCH_PREFIX|Filter by branch name| | |`release/`|
88
- |INCLUDE_LABELS|Labels used to check if the PullRequest has it| | |`Label1, Label2`|
89
- |OPENING_COMMENT|Opening comment (for other than DocToc)|`<!-- toc `| | |
90
- |CLOSING_COMMENT|Closing comment (for other than DocToc)|`<!-- tocstop `| | |
91
- |SKIP_COMMENT|Skip comment| | |`<!-- toc skip `|
92
- |GITHUB_TOKEN|Access token|`${{github.token}}`|true|`${{secrets.ACCESS_TOKEN}}`|
66
+ | name | description | default | e.g. |
67
+ |:---|:---|:---|:---|
68
+ |TARGET_PATHS|Target file path. (Comma separated, [Detail](https://github.com/thlorenz/doctoc#adding-toc-to-individual-files))|` README*.md`|`README*.md,CHANGELOG.md`, `.`|
69
+ |TOC_TITLE|TOC Title|`**Table of Contents**`|`''`|
70
+ |MAX_HEADER_LEVEL|Maximum heading level. ([Detail](https://github.com/thlorenz/doctoc#specifying-a-maximum-heading-level-for-toc-entries))| |`3`|
71
+ |CUSTOM_MODE|Whether it is custom mode([Generated Example](samples/README.horizontal.md))|`false`|`true`|
72
+ |CUSTOM_TEMPLATE|Custom template for custom mode|`<p align="center">${ITEMS}</p>`| |
73
+ |ITEM_TEMPLATE|Item template for custom mode|`<a href="${LINK}">${TEXT}</a>`| |
74
+ |SEPARATOR|Separator for custom mode|<code>\<span>|\</span></code>| |
75
+ |FOLDING|Whether to make TOC foldable|`false`|`true`|
76
+ |COMMIT_MESSAGE|Commit message|`chore(docs) : update TOC`|`docs: update TOC`|
77
+ |COMMIT_NAME|Git commit name|`${github.actor}`| |
78
+ |COMMIT_EMAIL|Git commit email|`${github.actor}@users.noreply.github.com`| |
79
+ |CREATE_PR|Whether to create PullRequest|`false`|`true`|
80
+ |CHECK_ONLY_DEFAULT_BRANCH|Whether to check only default branch|`false`|`true`|
81
+ |PR_BRANCH_PREFIX|PullRequest branch prefix|`toc-generator/`| |
82
+ |PR_BRANCH_NAME|PullRequest branch name<br>[Context variables](#context-variables)|`update-toc-${PR_ID}`|`toc-${PR_NUMBER}`|
83
+ |PR_TITLE|PullRequest title<br>[Context variables](#context-variables)|`chore(docs): update TOC (${PR_MERGE_REF})`|`docs: update TOC`|
84
+ |PR_BODY|PullRequest body<br>[Context PR variables](#context-pr-variables)|[action.yml](action.yml)| |
85
+ |PR_COMMENT_BODY|PullRequest body for comment<br>[Context PR variables](#context-pr-variables)|[action.yml](action.yml)| |
86
+ |PR_CLOSE_MESSAGE|Message body when closing PullRequest|`This PR has been closed because it is no longer needed.`| |
87
+ |TARGET_BRANCH_PREFIX|Filter by branch name| |`release/`|
88
+ |INCLUDE_LABELS|Labels used to check if the PullRequest has it| |`Label1, Label2`|
89
+ |OPENING_COMMENT|Opening comment (for other than DocToc)|`<!-- toc `| |
90
+ |CLOSING_COMMENT|Closing comment (for other than DocToc)|`<!-- tocstop `| |
91
+ |SKIP_COMMENT|Skip comment| |`<!-- toc skip `|
92
+ |GITHUB_TOKEN|Access token|`${{github.token}}`|`${{secrets.ACCESS_TOKEN}}`|
93
+ |SIGNOFF| Add `Signed-off-by` line | |`true`|
93
94
94
95
# ## Specify options individually
95
96
The options used for [doctoc](https://github.com/technote-space/doctoc#example) can be commented to specify values.
0 commit comments