Skip to content

Commit

Permalink
Merge pull request #812 from glennsarti/fix-release
Browse files Browse the repository at this point in the history
(GH-808) Fix prompt for pdk release
  • Loading branch information
glennsarti authored Dec 5, 2019
2 parents 33a1b0d + 269b478 commit 19f5eea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/pdk/cli/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ def self.prepare_interview(opts)
opts[:'skip-dependency'] = !answers['dependency']
opts[:'skip-documentation'] = !answers['documentation']

prepare_version_interview(opts) if answers['setversion']
prepare_version_interview(prompt, opts) if answers['setversion']

prepare_publish_interview(opts) if answers['publish']
prepare_publish_interview(prompt, opts) if answers['publish']
end
answers
end

def self.prepare_version_interview(opts)
def self.prepare_version_interview(prompt, opts)
questions = [
{
name: 'version',
Expand All @@ -160,7 +160,7 @@ def self.prepare_version_interview(opts)
opts[:version] = ver_answer['version']
end

def self.prepare_publish_interview(opts)
def self.prepare_publish_interview(prompt, opts)
return if opts[:'forge-token']
questions = [
{
Expand Down

0 comments on commit 19f5eea

Please sign in to comment.