Skip to content

SeanWeiSean/AutoReviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pull Request Tools 0.1

Build Status

A tool for reviewer recommendation and automatic adding in DevOps, Microsoft

Feature

  • A lightweight web framework, easy to deploy.
  • Customizable recommendation algorithm by git.

Architecture

Initialization

Localhost or Azure server in Windows or Linux. Download #nodejs

  1. From the command line, create a new project folder for your web server
   mkdir pr-server
   cd pr-server
  1. Create a new package.json file for the project.
   npm init

  Press Enter to accept the defaults for all of the options except the entry point. Change it to autoReviewer.js

    entry point: (index.js) autoReviewer.js
  1. Install Express in the pr-server directory using the following command.
   npm install express
  1. Replace the project URL and token with your own RepoUrl and Token.
  2. Replace the autoReviewer.js with our project then run it.
   npm install body-parser
   npm install azure-devops-node-api
   npm i nodemailer
   npm i shelljs
   node autoReviewer.js
  1. You shall have cmd show as below

Web Hook Deployment in DevOps

  1. Click the DevOps as the picture's instruction.
  2. Then we choose Web Hook options.
  3. Select Pull request created from the list of event triggers, then select Next.
  4. In the Action page, enter the URL:port your tools listening. Select Test to send a test event to your server.
    Attention If you're running in the localhost, enter the URL supported by Ngrok. Otherwise, use the Public IP address:port.
  5. select Finish to create the service hook.

























About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors