lib/geet/commandline/configuration.rb in geet-0.3.0 vs lib/geet/commandline/configuration.rb in geet-0.3.1
- old
+ new
@@ -22,36 +22,49 @@
# rubocop:disable Style/MutableConstant
ISSUE_CREATE_OPTIONS = [
['-n', '--no-open-issue', "Don't open the issue link in the browser after creation"],
['-l', '--label-patterns "bug,help wanted"', 'Label patterns'],
['-m', '--milestone 1.5.0', 'Milestone title pattern'],
- ['-a', '--assignee-patterns john,tom,adrian,kevin', 'Assignee login patterns. Defaults to authenticated user'],
+ ['-a', '--assignee-patterns john,tom,adrian,kevin', 'Assignee login patterns'],
+ ['-s', '--summary title_and_description', 'Set the summary (title and optionally description'],
['-u', '--upstream', 'Create on the upstream repository'],
long_help: 'The default editor will be opened for editing title and description.'
]
LABEL_CREATE_OPTIONS = [
['-c', '--color color', '6-digits hex color; if not specified, a random one is created'],
+ ['-u', '--upstream', 'Create on the upstream repository'],
'name',
].freeze
ISSUE_LIST_OPTIONS = [
['-a', '--assignee-pattern john', 'Assignee pattern'],
['-u', '--upstream', 'List on the upstream repository'],
].freeze
- LABEL_LIST_OPTIONS = [].freeze
+ LABEL_LIST_OPTIONS = [
+ ['-u', '--upstream', 'List on the upstream repository'],
+ ].freeze
- MILESTONE_LIST_OPTIONS = [].freeze
+ MILESTONE_LIST_OPTIONS = [
+ ['-u', '--upstream', 'List on the upstream repository'],
+ ].freeze
PR_CREATE_OPTIONS = [
+ ['-A', '--automated-mode', "Automate the branch operations (see long help)"],
['-n', '--no-open-pr', "Don't open the PR link in the browser after creation"],
['-l', '--label-patterns "legacy,code review"', 'Label patterns'],
['-m', '--milestone 1.5.0', 'Milestone title pattern'],
['-r', '--reviewer-patterns john,tom,adrian,kevin', 'Reviewer login patterns'],
+ ['-s', '--summary title_and_description', 'Set the summary (title and optionally description'],
['-u', '--upstream', 'Create on the upstream repository'],
- long_help: 'The default editor will be opened for editing title and description; if the PR adds one commit only, '\
- 'the content will be prepopulated with the commit description.'
+ long_help: <<~STR
+ The default editor will be opened for editing title and description; if the PR adds one commit only, the content will be prepopulated with the commit description.
+
+ The "automated mode" will automate branch operations:
+ - raise an error if the current tree is dirty;
+ - if the upstream branch is not present, it will create it, otherwise, it will perform a push.
+ STR
]
PR_LIST_OPTIONS = [
['-u', '--upstream', 'List on the upstream repository'],
].freeze