Giter Site home page Giter Site logo

stories's Introduction

Stories

stories is a cli client for pivotal tracker for all the story delivery people out there.

drop a stories.json file in your project, and voila, you can quickly see your work, start stories, and generate summaries of recent work done.

some commands it offers:

# equivalent to tracker's "My work" tab
stories mine

# checks out a branch for a story, and marks it as started
stories branch 12345

# print a story to stdout, based on the git branch
stories view

# or, open the website
stories view --web

# you can pass an id instead of git branch
stories view 12345

# show a report of recent changes you've made to stories
stories activity

# show all of the commands
stories --help

Installation

Homebrew (mac):

brew install schpet/tap/stories

Linux and mac binaries also available on releases

Cargo (from source):

# in this project's dir
cargo install --path .

throw alias s=stories in your ~/.zshrc ~/.bashrc for good measure.

Setup

  1. get your api token at https://www.pivotaltracker.com/profile#api
  2. write this token into a file at ~/.config/stories/tracker_api_token.txt, e.g.
    mkdir -p ~/.config/stories
    echo $YOUR_TRACKER_API_TOKEN > ~/.config/stories/tracker_api_token.txt
  3. drop a stories.json file in your project directory with a tracker project id, e.g.
    { "project_id": 1234 }

Github integration

Ensure that your pivotal tracker project is setup with the github integration which connects pull requests to tracker stories, and lets you deliver stories via commit messages.

Additionally, stories' pull-request command, e.g.

stories pr title --summarize

are intended to be used with github's gh cli, e.g.

gh pr create --title "$(stories pr title --summarize)" --body "$(stories pr body)" --web

# alias this for convenience:
gh alias set --shell prt "gh pr create --title \"\$(stories pr title --summarize)\" --body \"\$(stories pr body)\" --web"

you will also want to configure your repo's settings the following way:

  • Allow merge commits (optionally disable this)
  • Allow squash merging
    • Default to pull request title and description
  • Allow rebase merging (optionally disable this)

this can be done through the github repo settings page, or via gh api:

gh api repos/{owner}/{repo} --method PATCH -f allow_squash_merge=true -f allow_merge_commit=false -f allow_rebase_merge=false -f squash_merge_commit_title=PR_TITLE -f squash_merge_commit_message=PR_BODY

Development

Releasing a new version

cargo release -x patch
cargo release -x minor
cargo release -x major

stories's People

Contributors

schpet avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

stories's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.