![]() ![]() You will only be able to create a new thread on modified lines +/-3 three lines. ![]() You can reply to any existing thread or create a new thread by clicking on the white line that shows beside the line number. You can click on any of these files to view the diff and the comments on the file.Īs you can see in image above the comments are grouped in threads similar to how it is in AzDO. A small diamond icon will appear on the files which have comments on it. Expanding the PR will show you which files have changed in the PRs. You can expand any of these nodes to fetch the PR’s in it. There are some built in filters like PR’s raised by you or assigned to you. It allows you to view any open (active) pull requests. This particular TreeView is shown in both the modes. This mode shows a View active pull requests TreeView on the sidebar. In review mode you will get some additional functionality which is described later in the post. In browse mode you will be able to browse through the pull requests described in next section. If you do have a PR from the current branch you will be in review mode. In case you don’t have any pull requests you will be in browse mode. The type of mode depends upon whether the branch which you are currently on has any pull requests from it or not. The features that are available to you depends on which mode you are on - browse mode or review mode. If everything works the extension will create a new tab in the activity bar (the leftmost bar). The scopes required for PAT token is in extension’s description. Currently the app requires a PAT token to authenticate which in future I will change to OAuth based authentication. The best places to add these is in workplace settings and commit them so others in your team won’t have to set these. To get started you will need to add 2 settings - Url and azdoPullRequests.projectName. The extension will only start if you have a folder containing git repository open. I will not repeat the steps here as those may change in future. To get started simply download the extension from marketplace linked at the top and follow the Getting Started section in the extension page. Raise an issue in the repository above if you face any problems. This extension is in very early stages of development. Let me know in the comments if you would like a technical deep dive post on how these features are implemented. In this blog post I will describe some of these features and the current state of extension. Please give it a try and report any issues that you may encounter and I will fix it as soon as possible. In hope of community will help me by trying out the extension in variety of projects I am releasing a preview version of extension today. Because of breadth of diversity that can exist in any repository or pull request it is impossible for me to test such different scenarios by myself. ![]() However over past 3 weeks I was able to port subset of features to support AzDO. The Github PR extension is developed and maintained by VS Code team themselves so I was a little concerned if the team is using some internal vscode feature which is not publicly available. To make matter worse the Github PR extension is quite huge and complicated. Now I have never developed VS Code extension before and didn’t knew anything about what APIs are exposed by VS Code. So during this new year I decided to try porting this extension to support Azure Devops. Unfortunately my day work involves working in Azure Devops and not Github. The extension solves it by integrating the PR review process within VS Code itself. This usually leads to loss of context and laziness when reviewing PRs. You know how you have to switch from your development environment to some browser in order to review PR or address comments. The extension bridges the gap that currently exists between development workflow and Pull Request review. I have been fascinated with Github Pull Request VSCode Extension.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |