Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(add-last-sprint-label): adds flag to add last sprint label #208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/cli/scrum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def prioritize
option 'board-id', desc: 'Id of the board', required: true
option 'target-board-id', desc: 'Id of the target board', required: true
option 'burndown-update', desc: 'Generate new burndown data', type: :boolean, default: false
option 'set-last-sprint-label', desc: 'Set true to label cards as - in the last sprint', required: false, type: :boolean, default: false
def end_sprint
CliSettings.process_global_options options
CliSettings.require_trello_credentials
Expand All @@ -51,7 +52,7 @@ def end_sprint
cleaner = Scrum::SprintCleaner.new(CliSettings.settings)
cleaner.setup_boards(sprint_board: boards.sprint_board(CliSettings.board_from_id(options['board-id'])),
target_board: CliSettings.board_from_id(options['target-board-id']))
cleaner.cleanup(run_burndown: options['burndown-update'])
cleaner.cleanup(set_last_sprint_label: options['set-last-sprint-label'], run_burndown: options['burndown-update'])
end

desc 'start', 'Move the planning backlog to the sprint board'
Expand Down