You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to view all of the story-level tasks when calling 'git info' ?
If I have a story created in Pivotal with 5 tasks, I'd like to be able to see a list of these stories when calling 'git info'. I'd love to also be able to mark a task as complete from the command line tool, but that less of a priority for me.
The text was updated successfully, but these errors were encountered:
After playing around a bit, I was able to manipulate the 'git info' output via the 'info.rb' file. I successfully added in label information, but the API call for a Story's task isn't returning actual tasks. Here's the new code:
require 'commands/base'
module Commands
class Info < Base
def run!
super
unless story_id
put "Branch name must contain a Pivotal Tracker story id"
return 1
end
put "Story: #{story.name}"
put "URL: #{story.url}"
put "Labels: #{story.labels}"
put "Description: #{story.description}"
put "Tasks: #{story.tasks}"
return 0
end
protected
def story_id
current_branch[/\d+/].to_i
end
def story
@story ||= project.stories.find(story_id)
end
end
end
Is there a way to view all of the story-level tasks when calling 'git info' ?
If I have a story created in Pivotal with 5 tasks, I'd like to be able to see a list of these stories when calling 'git info'. I'd love to also be able to mark a task as complete from the command line tool, but that less of a priority for me.
The text was updated successfully, but these errors were encountered: