8000 Apply suggestions from review · githubocto/repo-visualizer@d74d6b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit d74d6b7

Browse files
committed
Apply suggestions from review
1 parent 8015562 commit d74d6b7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ The maximum number of nested folders to show files within. A higher number will
5252

5353
Default: 9
5454

55-
### `push`
55+
### `should_push`
5656

5757
Whether to make a new commit with the diagram and push it to the original repository.
5858

5959
Should be a boolean value, i.e. `true` or `false`. See `commit_message` and `branch` for how to customise the commit.
6060

61-
Default: `false`
61+
Default: `true`
6262

6363
### `commit_message`
6464

@@ -126,7 +126,7 @@ Example:
126126
path: downloads
127127
# Diagram now available at downloads/images/diagram.svg
128128
```
129-
Note that this will still also create a commit, unless you specify `push: false`!
129+
Note that this will still also create a commit, unless you specify `should_push: false`!
130130

131131
Alternatively, the SVG description of the diagram is available in the `svg` output,
132132
which you can refer to in your workflow as e.g. `${{ steps.make_diagram.outputs.svg }}`.

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ inputs:
2323
branch:
2424
description: "The branch name to push the diagram to (branch will be created if it does not yet exist). For example: diagram"
2525
required: false
26-
push:
26+
should_push:
2727
description: "Whether to push the new commit back to the repository. Must be true or false. Default: true"
2828
required: false
2929
default: true

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26299,7 +26299,7 @@ var main = async () => {
2629926299
core.info("[INFO] No changes to the repo detected, exiting");
2630026300
return;
2630126301
}
26302-
const shouldPush = core.getBooleanInput("push");
26302+
const shouldPush = core.getBooleanInput("should_push");
2630326303
if (shouldPush) {
2630426304
core.startGroup("Commit and push diagram");
2630526305
await (0, import_exec.exec)("git", ["commit", "-m", commitMessage]);

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const main = async () => {
7070
return
7171
}
7272

73-
const shouldPush = core.getBooleanInput('push')
73+
const shouldPush = core.getBooleanInput('should_push')
7474
if (shouldPush) {
7575
core.startGroup('Commit and push diagram')
7676
await exec('git', ['commit', '-m', commitMessage])

0 commit comments

Comments
 (0)
0