Yet another lightweight Pivotal Tracker API v5 client for Ruby
Add this line to your application's Gemfile:
gem 'pivotal'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pivotal
@client = Pivotal::Client.new("user token goes here")
projects = @client.projects
# => [#<Pivotal::Project id=12345, name="Pivotal.rb">]
project = @client.project(project_id)
# => #<Pivotal::Project id=12345, name="Pivotal.rb">
epics = @client.epics(project_id)
# => [#<Pivotal::Epic id=12345, name="Integration with Beanstalk">]
epic = @client.epic(epic_id)
# => #<Pivotal::Epic id=12345, name="Integration with Beanstalk">
comments = @client.epic_comments(epic_id)
# => [#<Pivotal::Comment id=12345, text="New Commit in Pivotal.rb Project">]
comment = @client.epic_comment(epic_id, comment_id)
# => #<Pivotal::Comment id=12345, text="New Commit in Pivotal.rb Project">
@client.new_epic_comment(project_id, epic_id, "Comment Body")
# => #<Pivotal::Comment id=12345, text="Comment Body">
stories = @client.stories(project_id)
# => [#<Pivotal::Story id=12345, name="Write Ruby client">]
story = @client.story(story_id)
# => #<Pivotal::Story id=12345, name="Write Ruby client">
comments = @client.story_comments(story_id)
# => [#<Pivotal::Comment id=12345, text="New Commit in Pivotal.rb Project">]
comment = @client.story_comment(story_id, comment_id)
# => #<Pivotal::Comment id=12345, text="New Commit in Pivotal.rb Project">
@client.new_story_comment(project_id, story_id, "Comment Body")
# => #<Pivotal::Comment id=12345, text="Comment Body">
- Clone repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Merge Request
HipChat!