def project_id
      project_id = @options[:project_id] || Git.get_config(KEY_PROJECT_ID, :inherited)

      if project_id.empty?
        project_id = choose do |menu|
          menu.prompt = 'Choose project associated with this repository: '

          PivotalTracker::Project.all.sort_by { |project| project.name }.each do |project|
            menu.choice(project.name) { project.id }
          end
        end

        Git.set_config(KEY_PROJECT_ID, project_id, :local)
        puts
      end

      project_id
    end
def project_id
      project_id = @options[:project_id] || Git.get_config(KEY_PROJECT_ID, :inherited)

      if project_id.empty?
        project_id = choose do |menu|
          menu.prompt = 'Choose project associated with this repository: '

          PivotalTracker::Project.all.sort_by { |project| project.name }.each do |project|
            menu.choice(project.name) { project.id }
          end
        end

        Git.set_config(KEY_PROJECT_ID, project_id, :local)
        puts
      end

      project_id
    end
Returns the Pivotal Tracker project id for this repository.  If this id
 has not been configuration, prompts the user for the value.  The value is
 checked for in the _inherited_ Git configuration, but is stored in the
 _local_ Git configuration so that it is specific to this repository.

 @return [String] The repository's Pivotal Tracker project id