Browse Source

set default value for --for option to "general"

master
Niklas Rosenstein 10 months ago
parent
commit
59f8a46040
No known key found for this signature in database GPG Key ID: 6D269B33D25F6C6
2 changed files with 7 additions and 1 deletions
  1. + 6
    - 0
      .changelog/_unreleased.yml
  2. + 1
    - 1
      src/shore/__main__.py

+ 6
- 0
.changelog/_unreleased.yml

@ -4,3 +4,9 @@
components:
- general
description: Replace `shore.utils.git` with `nr.utils.git` module
- types:
- change
issues: []
components:
- cli
description: default value for `shore changelog --for` option is now `general`

+ 1
- 1
src/shore/__main__.py

@ -783,7 +783,7 @@ def publish(**args):
@click.argument('version', type=parse_version, required=False)
@click.option('--reformat', is_flag=True, help='reformat the changelog')
@click.option('--add', metavar='type,…', help='create a new changelog entry')
@click.option('--for', metavar='component,…', help='components for the new changelog entry')
@click.option('--for', metavar='component,…', help='components for the new changelog entry (default: general)', default='general')
@click.option('--fixes', metavar='issue,…', help='issues that this changelog entry fixes')
@click.option('-m', '--message', metavar='text', help='changelog entry description')
@click.option('-e', '--edit', is_flag=True, help='edit the changelog entry or file')

Loading…
Cancel
Save