CLI tool for pushing code reviews to GitLab
``bash`
npm install -g servicenow-codereview
1. Create a scratch branch
2. Commit to a scratch branch
3. Use cr create command to create a code reviewcr merge
4. Do the review process in GitLab
5. When ready, merge your scratch branch into your track branch with
`bashfrom a base track branch
$ git checkout track/sp
Development
Clone the repository from GitLab and install dependencies with npm
`bash
git clone git@gitlab-deo.devsnc.com:service-portal/sncodereview.git
cd sncodereview
npm install
`To install and use the CLI tool in source control, run:
npm install -g && npm linkTesting
There are currently no unit tests, but you can run the linter to detect code issues:
`bash
npm run lint
`Publishing
`bash
npm publish
``That's it, but you have to ask Patrick to add you as a collaborator on npmjs.com.
* This requires a relatively new version of node