GithubHelp home page GithubHelp logo

shortstack's Introduction

Introduction

ShortStack is a tool to transform the way you check in code so that you get more and better code reviews.
The typical developer will check in something large and painful at the end of a period of private feature development, but with ShortStack, it becomes easy to create small pull requests for each atomic piece of work you do to advance the feature. This allows you to get feedback EARLY, because you won't have to wait for code reviews, and it will make code reviews MORE EFFECTIVE because you can isolate logic changes from each other and from trivial changes such as boiler plate code.

Getting Started

To get started with the powershell script:

  1. Clone short stack to you local drive: git clone https://github.com/microsoft/ShortStack.git [local folder path]
  2. Enable custom scripts on your machine with this powershell command: Set-ExecutionPolicy Unrestricted
  3. Install posh-git: PowerShellGet\Install-Module posh-git -Scope CurrentUser
  4. Get a VSTS access token:
    1. Visit https://mscodehub.visualstudio.com/ShortStack/_git/ShortStack
    2. Click your user icon and click 'Security'
    3. Click on 'Add' to add a new token (make it active for a year)
    4. Click 'Create Token', then immediately copy the value displayed.
  5. Edit your powershell profile with this command: notepad $profile. If prompted, create the file if it doesn't already exist and then add these lines:
Import-Module Posh-Git -Force
Import-Module c:\tools\shortstack\scripts\ShortStack.psm1 -Force
$VSTSPersonalAccessToken="(your VSTS personal access key)"
  1. Close and re-open powershell to make sure your profile works. You should be able to type ss on the command line and see ShortStack Help.
  2. In each repository, Create a default reviewers file:
    1. Create the file "stackprefs.txt" in your .git folder
    2. run Get-VSTSUserGuids to see the user id's of users in your repository
    3. for each reviewer you want to include, add this line: reviewerid=(vsts_guid_of_user) (lines starting with '#' are treated as comments)

Build and Test

Building and running the cmdlets:

  1. Open .sln in Visual Studio 2019 or later

Contribute

Please feel free to fork your own repo and submit your work as a PR. We will code review and bring in changes that meet a high quality bar.

shortstack's People

Contributors

dependabot[bot] avatar erjorge avatar jerisbrisk avatar microsoftopensource avatar msftgits avatar nebosite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

shortstack's Issues

Various issues with opening URLs

  1. This error shows up every time I ss push or ss finish. (The current use of Process::Start($url) to launch these URLs doesn't seem to be working as hoped.)
Do you wish to continue?
Type 'YES' to continue: : YES
Creating 'finish' branch...
Switched to branch 'users/jer/CleanUp_00'
Switched to branch 'users/jer/CleanUp_FINISH'
Completing pull request 6 CleanUp_01: Bye bye cruft
Creating new pull request ' Completion of CleanUp '
Created pull request with id:  7
ERROR:  Exception calling "Start" with "1" argument(s): "The system cannot find the file specified."
  1. the govsts command is hard-wired to launch the version of Edge included with Windows. I prefer Edge Dev, but we probably should launch the configured default browser.

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.