Giter Site home page Giter Site logo

kelleyma49 / vscode-pull-request-azdo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ankitbko/vscode-pull-request-azdo

0.0 1.0 0.0 24.05 MB

Azure Devops Pull Requests for Visual Studio Code

Home Page: https://marketplace.visualstudio.com/items?itemName=ankitbko.vscode-pull-request-azdo

License: MIT License

JavaScript 2.78% TypeScript 93.99% CSS 3.23%

vscode-pull-request-azdo's Introduction

Review and manage your Azure Devops pull requests directly in VS Code

Build and Test

This extension is inspired and based on Github Pull Request Extension for VS Code. The extension only works with git based repository. TFVC is not supported. Below are some the features that extension supports. Read about all the features in wiki.

  • Authenticating and connecting VS Code to Azure Devops.
  • Listing and browsing PRs from within VS Code.
  • Reviewing PRs from within VS Code with in-editor commenting.
  • Validating PRs from within VS Code with easy checkouts.
  • Suggest edits to the PR Author. Author can apply edits directly from Description page.
  • Mark file as viewed when reviewing PR.

You can read more about the basic features in my blog.

Note From Author: I created this extension during last 2 weeks of December 2020 as a fun side project. Having never created a VS Code Extension before this was quite a journey. I am currently planning to get this to somewhat stable state before adding more features to it. Please try this extension and report any bugs by raising issue. Since this is a fork of Github PR Extension I will try to backport important updates from upstream to this extension. If you feel there has been an important bug fix or feature update in upstream that you would like in this extension, please raise an Issue here with link to the PR or Issue in upstream.

Disclaimer: Although I work at Microsoft and this is a fork of Github PR Extension, this extension is not an official release or supported by Microsoft. This is a side project that I will try to maintain in my free time. Any help is always appreciated.

PR Diff PR Dashboard

Getting Started

It's easy to get started with Azure Devops Pull Requests for Visual Studio Code. Simply follow these steps to get started.

  1. Make sure you have VSCode version 1.52.0 or higher.
  2. Reload VS Code after the installation (click the reload button next to the extension).
  3. Open your desired Azure Devops repository.
  4. You will need to configure the azdoPullRequests.projectName and azdoPullRequests.orgUrl setting. You can configure it in workspace settings and commit it so others in your team wouldn't need to do this configuration again. (Look at the next section to understand the format of these settings).
  5. You will need to configure PAT token in Azure Devops to login. Click on show all scopes and select the following scopes for the token - Code: Read & Write, Pull Request Threads: Read & Write, Work Items: Read & Write, Member Entitlement Management: Read. Read more about these scope in next section.
  6. A new tab would have appeared on the activity bar on the left. Open it and click on Sign in button. Enter the PAT token and press enter.
  7. You should be good to go!

Features

Learn all about different features of the extension in the wiki.

Scopes required by PAT Token

  • Minimum: These scopes are required for extension to access Pull Requests and Threads. Without these scopes the extension will not even start.
    • Code: Read & Write: Required to access repository metadata and pull requests.
    • Pull Request Threads: Read & Write: Access Pull Request comment threads.
  • Additional: These scopes are required to experience the extension in its completeness. Without these some functionality of extension may not work or the extension may cause errors.
    • Work Items: Read & Write: Allow to read and associate work items to a PR.
    • Member Entitlement Management: Read: Used to search for users when adding reviewers to PR.

Configuring the extension

azdoPullRequests.orgUrl

  • type: string
  • required: true
  • Description: The organization URL of Azure Devops. You can get it from the URL of the AZDO. This is typically the first segment of URL after host name in AZDO. https://dev.azure.com/<org_name> or https://<org_name>.visualstudio.com. You will need to enter the complete URL.
  • Example: https://dev.azure.com/anksinha or https://anksinha.visualstudio.com

azdoPullRequests.projectName

  • type: string
  • required: true
  • Description: The project in the Azure Devops. This is typically the next segment of URL after organization name in AZDO. https://dev.azure.com/<org_name>/<project_name> or https://<org_name>.visualstudio.com/<project_name>. Do not enter the complete URL, you only need to enter the project_name part.
  • Example: prExtension

azdoPullRequests.logLevel

  • type: enum
  • required: false
  • default: Info
  • Description: The level of log to display in AzDO Pull Request Channel in Output window.

azdoPullRequests.diffBase

  • type: enum
  • required: false
  • default: mergebase
  • Description: The commit to use to get diff against the PR branch's HEAD. Read more about different options in wiki

Known Major Issues

  1. Mentions in comments are not resolved to user and no hover support
  2. Can't mention users in comments
  3. Some incompatibility with Github PR Extension. If you have both extensions installed and seeing issues with either try disabling the other extension and reloading the window.
  4. In some cases, user avatar image does not show up in Dashboard.
  5. Reactions do not work.

Questions? Authentication?

See our wiki for our FAQ.

Contributing

TODO

vscode-pull-request-azdo's People

Contributors

rebornix avatar alexr00 avatar smashwilson avatar joaomoreno avatar kuychaco avatar ankitbko avatar auchenberg avatar stanleygoldman avatar jeffreyca avatar queerviolet avatar dependabot[bot] avatar kieferrm avatar wyze avatar shana avatar emtei avatar rishabhkothaari avatar illusionmh avatar yulrizka avatar egamma avatar jerrymajewski avatar ornelladotcom avatar tyriar avatar yoh1496 avatar ikuyadeu avatar sbatten avatar shatgupt avatar s0 avatar lifez avatar microsoftopensource avatar malwilley avatar

Watchers

 avatar

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.