Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 61fcde3

Browse files
authored
Merge pull request #73 from audricschiltknecht/feat/git-to-stderr
feat: Add new option to hide git output
2 parents bb0ac7b + 0457216 commit 61fcde3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
| `prerelease` | Set as prerelease {alpha,beta,rc} choose type of prerelease | - |
7474
| `extra_requirements` | Custom requirements, if your project uses a custom rule or plugins, you can specify them separated by a space. E.g: `'commitizen-emoji conventional-JIRA'` | - |
7575
| `changelog_increment_filename` | Filename to store the incremented generated changelog. This is different to changelog as it only contains the changes for the just generated version. Example: `body.md` | - |
76+
| `git_redirect_stderr` | Redirect git output to stderr. Useful if you do not want git output in your changelog | `false` |
7677
| `git_name` | Name used to configure git (for git operations) | `github-actions[bot]` |
7778
| `git_email` | Email address used to configure git (for git operations) | `github-actions[bot]@users.noreply.github.com` |
7879
| `push` | Define if the changes should be pushed to the branch. | true |

‎action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ inputs:
5252
changelog_increment_filename:
5353
description: 'Filename to store the incremented generated changelog. This is different to changelog as it only contains the changes for the just generated version'
5454
required: false
55+
git_redirect_stderr:
56+
description: 'Redirect git output to stderr. Useful if you do not want git output in your changelog'
57+
required: false
58+
default: "false"
5559
git_name:
5660
description: 'Name used to configure git (for git operations)'
5761
required: false

‎entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ fi
6565
if [[ $INPUT_CHECK_CONSISTENCY ]]; then
6666
CZ_CMD+=('--check-consistency')
6767
fi
68+
if [[ $INPUT_GIT_REDIRECT_STDERR == 'true' ]]; then
69+
CZ_CMD+=('--git-output-to-stderr')
70+
fi
6871
if [[ $INPUT_CHANGELOG_INCREMENT_FILENAME ]]; then
6972
CZ_CMD+=('--changelog-to-stdout')
7073
echo "${CZ_CMD[@]}" ">$INPUT_CHANGELOG_INCREMENT_FILENAME"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /