Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
268 commits
Select commit Hold shift + click to select a range
8efee79
Merge branch 'master' into feature/inline-reviews
grokys Apr 20, 2017
d9f5779
Merge branch 'fixes/shareddictionarymanager-merge' into feature/inlin…
grokys Apr 20, 2017
32ffa2f
Recalculate comment positions.
grokys Apr 20, 2017
3591bf8
Recalculate comment positions on edit.
grokys Apr 21, 2017
7d6bf93
Use tracking points to track comment positions.
grokys Apr 21, 2017
cf0b56b
Display # of file comments in changes tree.
grokys Apr 21, 2017
67e6c70
Fix extracting files for diffs.
grokys Apr 21, 2017
150d0f8
Make inline comments display again.
grokys Apr 21, 2017
ef501a9
Added hack to pass path to tagger for diff view.
grokys Apr 24, 2017
bd9126c
Expose current user from ModelService.
grokys Apr 24, 2017
2795e7b
Display a text box to add a reply to a comment.
grokys Apr 24, 2017
7df9cf0
Added comment commit and cancel buttons.
grokys Apr 24, 2017
8b5c5c1
Initial implementation of PR comment replies.
grokys Apr 24, 2017
2918f93
Display errors in CommentView.
grokys Apr 24, 2017
669f52e
Notify PR review session of added comments.
grokys Apr 24, 2017
4687721
Simplify rx query.
grokys Apr 24, 2017
91a6e61
Show scrollbars in CommentBlockView.
grokys Apr 24, 2017
c100249
Enable Glyph margin when diffing PR files
jcansdale Apr 25, 2017
b59a49f
Allow GitHub.InlineReviews to load in VS 2017
jcansdale Apr 25, 2017
b858d9d
Count comments that have an OriginalPosition.
grokys Apr 26, 2017
790c864
Handle ConvertTabsToSpaces editor setting.
grokys Apr 26, 2017
8e4ec75
Handle options not being defined.
grokys Apr 27, 2017
af581e3
Removed compare view hack.
grokys Apr 27, 2017
3e41d5d
Display review glyphs on LHS of diff view.
grokys Apr 27, 2017
f6491f2
Fix positioning of review comments.
grokys Apr 27, 2017
3ec2226
Display comment count in PR details view.
grokys May 2, 2017
5ed5c29
Renamed Review -> InlineComment
grokys May 2, 2017
3a73da0
Install Microsoft.VisualStudio.Editor package.
grokys May 2, 2017
32a985e
Use one way binding for CommentCount.
grokys May 2, 2017
5980af1
AllUsers should by false when Experimental
jcansdale Apr 28, 2017
c4304d3
Name attribute is required.
grokys May 3, 2017
8ee9ee7
Default to diffing using `InLine` mode
jcansdale May 3, 2017
afa6124
Calculate lines where new comments can be added.
grokys May 3, 2017
c4f1bca
Show "Add comment" icons in margin
grokys May 3, 2017
d24ae97
Show peek window when "Add Comment" clicked.
grokys May 3, 2017
bc0fafb
Initial impl of leaving new comments.
grokys May 3, 2017
a783edf
Add the comment on the correct line.
grokys May 3, 2017
52559e7
Set Inline mode but allow user to change it
jcansdale May 4, 2017
abb7c8b
WIP: Preparing for PR comments view.
grokys May 4, 2017
7d985c6
WIP: Initial implementation of PR comments view.
grokys May 5, 2017
0b077bf
Always store the PR number in the git config.
grokys May 8, 2017
312c529
Detect PR branch outside PR details view.
grokys May 8, 2017
3548acd
DisconnectedRepositoryHost.ModelService returns null.
grokys May 8, 2017
55fa85f
SHow PR comments from PR details view.
grokys May 8, 2017
1186618
Show the correct PR when opening PR comments.
grokys May 9, 2017
15a5ae2
Fixed/improved diff view.
grokys May 9, 2017
2284da3
Fix scrolling in comments view.
grokys May 9, 2017
dedbb78
Route mouse enter/leave events to add line glyph
jcansdale May 9, 2017
5e3df45
Only show AddInlineCommentGlyph when mouse is over it
jcansdale May 9, 2017
82480b7
Show and hide Glyph using events not overrides
jcansdale May 9, 2017
95724de
Merge pull request #983 from github/feature/inline-reviews-mouse-events
grokys May 10, 2017
a0cbfac
Merge branch 'feature/inline-reviews' of https://github.com/github/Vi…
grokys May 10, 2017
f625851
Removed unused property.
grokys May 10, 2017
d253ba3
Renamed PR session classes.
grokys May 10, 2017
9edf9de
WIP: Refactoring PullRequestSession.
grokys May 10, 2017
7e4cbca
Refactor tags to use information in PullRequestSession.
grokys May 12, 2017
77dc94b
Reinstate "add comment" tags.
grokys May 12, 2017
f235b54
Bump version to 2.2.1.99
May 15, 2017
0b2da25
Bump version to 2.2.1.100
shana May 16, 2017
cde607d
Reply to first comment in thread.
May 16, 2017
c32d5f7
Exclude existing comments from add lines.
grokys May 22, 2017
bf718ce
Null check for repository.CloneUrl.
grokys May 22, 2017
044da1c
Add try/catch around async void method.
grokys May 22, 2017
83b19ad
Fix cancelling comment.
grokys May 22, 2017
1ac659f
Pass line number to diff comment thread.
grokys May 23, 2017
cbb2646
Merge branch 'feature/inline-reviews-refactor' into feature/inline-re…
grokys May 23, 2017
17673bb
NULLGUAAARRRD!
grokys May 24, 2017
13da8ad
Fixed failing tests.
grokys May 24, 2017
e087800
Added more doc comments.
grokys May 24, 2017
6efbcb4
Added locking around GetFile.
grokys May 24, 2017
e2438ac
Make sure hosts are logged in.
grokys May 24, 2017
c4144be
Show sample data in CommentThreadView.
grokys May 24, 2017
eddcd60
Add secondary Glyph margin working alongside original
jcansdale May 24, 2017
c998b50
Remove from legacy shared Glyph margin
jcansdale May 24, 2017
cc3d11e
Merge branch 'feature/inline-reviews' of https://github.com/github/Vi…
grokys May 24, 2017
34e5337
Don't signal rebuild if file not yet retreived.
grokys May 24, 2017
a86ec9f
Consolidate IGlyphFactory<TGlyphTag> and IGlyphFactories
jcansdale May 24, 2017
5c010a6
Rename InlineCommentGlyphFactoryProvider to MouseProcessorProvider
jcansdale May 24, 2017
0289dfa
Remove CanvasAndGlyphFactory
jcansdale May 24, 2017
318f762
Clean up and simplify code
jcansdale May 24, 2017
fc039ed
Moved generic GlyphMargin to GitHub.InlineReviews.Glyph namespace
jcansdale May 24, 2017
8f608d2
Removed InlineCommentGlyphMouseProcessorProvider
jcansdale May 25, 2017
e8a9305
Consolidate InlineCommentGlyphFactory/MouseProcessor
jcansdale May 25, 2017
8037d8e
Handle events fired directly from Glyphs
jcansdale May 25, 2017
e334bbc
Initial implementation of comment navigation.
grokys May 25, 2017
b0552f5
Refactored InlineComments commands
grokys May 25, 2017
ee021ed
Added doc comments.
grokys May 26, 2017
54c1496
Dynamically enable comment nav commands.
grokys May 26, 2017
5779050
GetCollapsedRegions may return null.
grokys May 26, 2017
528ea25
Fix displaying comments in diff view.
grokys May 26, 2017
0025c5e
Simplify events
jcansdale May 25, 2017
7d0921b
Show where comments can't be added with hatch pattern
jcansdale May 26, 2017
ce4ff49
Make ncrunch work for GitHub.InlineReviews.
grokys May 26, 2017
1a2ebb3
Merge branch 'feature/inline-reviews' of https://github.com/github/Vi…
grokys May 26, 2017
1f2ae62
Correctly display comments on deleted lines.
grokys May 26, 2017
74c6483
Added shortcuts for next/previous comment.
grokys May 26, 2017
8f96342
Display comments on non-HEAD branch.
grokys May 26, 2017
59d1fce
Use rothko for file access.
grokys May 26, 2017
8611aba
Color glyph backgrounds when line added or deleted
jcansdale May 26, 2017
3c2b8ba
Use git for diffing.
grokys May 29, 2017
2c9958a
Merge branch 'feature/inline-reviews' of https://github.com/github/Vi…
grokys May 29, 2017
7f76c47
Pass hint path to CreateBlob.
grokys May 29, 2017
6b81f3f
Handle BOM in files.
grokys May 29, 2017
60c6474
Made a start on InlineReviews tests.
grokys May 29, 2017
a5e657d
Refactored PullRequestServiceTests.
grokys May 30, 2017
40a02ef
Added more PullRequestService tests.
grokys May 30, 2017
4302a70
Added ReadAllBytesAsync to Rothko.
grokys May 31, 2017
8c669fa
Tidy up after ourselves.
grokys May 31, 2017
b55abdc
Fix tests in ncrunch.
grokys May 31, 2017
837d7f4
GlyphFactory doesn't need TagAggregator
jcansdale May 30, 2017
d36a956
Don't tie InLineCommentMargin visibility to GlyphMargin
jcansdale May 30, 2017
f77d439
Only show InlineCommentMargin when there are tags
jcansdale May 30, 2017
385a29c
Only NotifyTagsChanged when there is a file
jcansdale May 30, 2017
d7b3d44
Only show margin on text buffers with PR file
jcansdale May 31, 2017
87a3a31
Initialize glyphs on Loaded event
jcansdale May 31, 2017
d915524
Don't attempt to set DifferenceViewMode.Inline
jcansdale May 31, 2017
50842d6
Only draw glyph where text is
jcansdale Jun 1, 2017
ba2c148
Don't crash if there is a single line `diff_hunk`
jcansdale Jun 1, 2017
ed14e4f
Fix comments added 2 lines below target with unit tests
jcansdale Jun 2, 2017
a843621
Fix debug stepping and coverage with NCrunch
jcansdale Jun 2, 2017
52cd772
Refactor `ParseFragment` and `Match` into `DiffUtilities`
jcansdale Jun 2, 2017
42e71a7
Chunks are currently -1 based
jcansdale Jun 2, 2017
43561ed
Make `DiffLine` number consistent with GitHub API
jcansdale Jun 2, 2017
dfa066d
Add doc comments for `DiffLine`
jcansdale Jun 2, 2017
8a629fb
Add more `ParseFragment` unit tests
jcansdale Jun 2, 2017
12bc9b8
More unit tests for `DiffUtilities`
jcansdale Jun 2, 2017
8da67d5
Remove InlineCommentGlyphBase.cs from project
jcansdale Jun 2, 2017
11fc4b1
Initial implementation of refreshing PR session.
Jun 5, 2017
6c8d5b6
Close peek view on update.
grokys Jun 5, 2017
a51844d
Merge branch 'grokys/inline-reviews-refresh' into feature/inline-reviews
grokys Jun 5, 2017
f9430b7
Fix comments in diff view.
grokys Jun 5, 2017
ceda811
Navigate to first comment from PR details.
grokys Jun 5, 2017
2a80722
Move PR session services into single interface
grokys Jun 6, 2017
e3324d5
Add tests for `PullRequestService.ExtractDiffFiles`
jcansdale Jun 6, 2017
05c3978
Update tests now `ExtractFile` returns content rather than a file path
jcansdale Jun 6, 2017
86dc2a9
Fix fallback to IModelService if file can't be found in git
jcansdale Jun 6, 2017
daba1ab
Add tests for file added/deleted in commit
jcansdale Jun 6, 2017
f989f12
Test for `IModelService.GetFileContents` returning file path not cont…
jcansdale Jun 6, 2017
52e2a8b
Throw `FileNotFoundException` when file/commit isn't in local repo
jcansdale Jun 6, 2017
d3e213a
File commit SHA may be null.
grokys Jun 7, 2017
d4ed727
Reinstated "View conversation on GitHub"
grokys Jun 7, 2017
ae74665
Factored out common setup code from unit tests
jcansdale Jun 7, 2017
7559733
Merge branch 'fixes/1006-right-diff-empty' into feature/inline-reviews
jcansdale Jun 7, 2017
00b45bb
Make CurrentSession a notifying property.
grokys Jun 7, 2017
fb805e8
Moved getting PR info for an ITextBuffer
grokys Jun 7, 2017
9cbc9a8
Changed logic back around getting PR session.
grokys Jun 7, 2017
234d87a
Open PF diffs in the right hand "provisional" tab
jcansdale Jun 7, 2017
a194808
Added new view/vm for inline peek window.
grokys Jun 7, 2017
5cc3620
Merge branch 'feature/inline-reviews' of https://github.com/github/Vi…
grokys Jun 7, 2017
cfca9b8
Fix showing diff file comments.
grokys Jun 7, 2017
378007d
Started adding InlineCommentPeekViewModel tests
grokys Jun 8, 2017
0097b74
Check the left hand PR diff is for the merge base not the base
jcansdale Jun 8, 2017
ad81ef6
Make PR diff to use the merge base when available
jcansdale Jun 8, 2017
0341b4e
Enable/disable post button on new comment thread.
grokys Jun 8, 2017
57db11d
Add new comment to correct diff line.
grokys Jun 8, 2017
9cda47a
Handle commenting on LHS of diff.
grokys Jun 8, 2017
ecfde70
Update session with added comment thread.
grokys Jun 8, 2017
1f1aee7
Fetch PR base and head before finding merge base
jcansdale Jun 9, 2017
e617e74
Only fetch PR base and head if merge base can't be found
jcansdale Jun 9, 2017
7fda7c9
Switch peek thread model on post.
grokys Jun 9, 2017
2b25c11
Refresh peek window on refresh.
grokys Jun 9, 2017
26a6b27
No need to retrieve PR head using `IModelService.GetFileContents`
jcansdale Jun 9, 2017
e8919d7
Fix repying to threads.
grokys Jun 9, 2017
85d1af2
Show add comment button on dirty branches.
grokys Jun 9, 2017
70fbcec
Check pushed state in IsUnmodifiedAndPushed.
grokys Jun 9, 2017
4ce4da0
Add `GetPullRequestMergeBase` to `IGitClient`
jcansdale Jun 9, 2017
8ea59f1
Allow commenting on non-checkout out branches.
grokys Jun 9, 2017
3fdfac6
Add tests for GetPullRequestMergeBase
jcansdale Jun 9, 2017
b3b74d8
Refactored PullRequestSessionManager
grokys Jun 9, 2017
562dcff
Use CreatedAt rather than UpdatedAt.
grokys Jun 12, 2017
b32ef87
Merge branch 'feature/inline-reviews' into fixes/1007-use-merge-base
jcansdale Jun 12, 2017
29f226e
Display # threads in PR details view.
grokys Jun 12, 2017
99c24bf
Clean up tests by using `Assert.ThrowsAsync`
jcansdale Jun 13, 2017
ab57795
Make VS commands ICommands
grokys Jun 13, 2017
980af80
Cleanued up App.config file which was redirecting some System assemblies
jcansdale Jun 13, 2017
0d04613
Merge pull request #1008 from github/fixes/1007-use-merge-base
jcansdale Jun 13, 2017
e9e3cd9
Fix PR base diff file when checked out file is UTF-8
jcansdale Jun 13, 2017
cdba774
Merge pull request #1011 from github/fixes/1010-diff-encoding
jcansdale Jun 13, 2017
b032667
Added next and previous comment buttons.
grokys Jun 13, 2017
01b79cf
Merge branch 'feature/inline-reviews' of https://github.com/github/Vi…
grokys Jun 13, 2017
cce57d0
Handle unmarked PR branches.
grokys Jun 14, 2017
84a18f2
Mark files as UTF-8 so Visual Studio doesn't load as Windows-1252
jcansdale Jun 14, 2017
58e0c98
Fix inline mode compare view.
grokys Jun 14, 2017
b41b1ab
Retain comment being edited when refreshed.
grokys Jun 14, 2017
be5840e
Read file content from git when PR not checked out.
grokys Jun 15, 2017
5a043d1
Make PullRequestSession use PR merge base rather than base
jcansdale Jun 14, 2017
d821a19
Add caching for `GetPullRequestMergeBase`
jcansdale Jun 15, 2017
848b434
Do a fetch of the PR ref if necessary.
grokys Jun 15, 2017
361235b
Removed unused variable.
grokys Jun 15, 2017
211fea8
Improve comment navigation in diff view.
grokys Jun 16, 2017
efbbfda
Fix navigating comments in inline diffs.
grokys Jun 16, 2017
60e2434
Make test compile.
grokys Jun 16, 2017
928f96e
IsModified should only compare Blobs
jcansdale Jun 16, 2017
d8930ca
Cache IRepository associated with ILocalRepositoryModel
jcansdale Jun 16, 2017
e5ea789
Switch next and previous buttons
donokuda Jun 16, 2017
aa47bc9
Start some styling
donokuda Jun 19, 2017
a07a5b4
Comment out sample data since it breaks building
donokuda Jun 19, 2017
423374e
Adjust avatar size and an attept to set the border color
donokuda Jun 19, 2017
db70352
Style some comment containers
donokuda Jun 19, 2017
9eb38c7
Dock buttons to the top
donokuda Jun 19, 2017
1fe2756
Don't retain submitted comment after post.
grokys Jun 19, 2017
4495f0a
Hardcode some background colors for now
donokuda Jun 19, 2017
a558dda
Add a happy little separator
donokuda Jun 19, 2017
9910a0c
Use octicons for the arrows!
donokuda Jun 22, 2017
382d89e
Tooltips!
donokuda Jun 23, 2017
90cd3ad
Ok don't disable this button anymore
donokuda Jun 23, 2017
c915728
Adjust avatar size
donokuda Jun 23, 2017
752101d
Adjust height of collapsed text field
donokuda Jun 23, 2017
7a36812
Adjust margins one more time with feeling
donokuda Jun 23, 2017
96f712a
Use negative margins
donokuda Jun 23, 2017
24a8689
Match chunk headers that don't contain line count
jcansdale Jun 26, 2017
da28215
The "\ No newline at end of file" line isn't always at end
jcansdale Jun 26, 2017
24599a0
Don't store diff control lines with chunk Lines
jcansdale Jun 26, 2017
a3fdc1b
Revert "Cache IRepository associated with ILocalRepositoryModel"
jcansdale Jun 27, 2017
d84ccd4
Don't create Repository object on Main thread
jcansdale Jun 27, 2017
3097190
Merge branch 'master' into feature/inline-reviews
grokys Jun 27, 2017
bcd981f
Fixed script submodule commit.
grokys Jun 27, 2017
3bb3cd9
Merge remote-tracking branch 'origin/ui/inline-reviews-polish' into f…
grokys Jun 27, 2017
9bb507b
Removed vertical spacing hack.
grokys Jun 27, 2017
872040d
Handle errors when posting comments.
grokys Jun 28, 2017
203608c
Don't try to post empty comments.
grokys Jun 28, 2017
28267ef
Only allow commenting on deleted lines on LHS.
grokys Jun 29, 2017
48ae1dd
Disable next/previous comment buttons.
grokys Jun 29, 2017
952fe91
Refresh glyph background colors when theme changes
jcansdale Jun 29, 2017
a80a44b
Make "must push changes" comment wrap.
grokys Jun 29, 2017
8f15b0f
Merge branch 'feature/inline-reviews' of https://github.com/github/Vi…
grokys Jun 29, 2017
f2cdce6
Bind glyph background colors using DynamicResource
jcansdale Jun 29, 2017
e8c20ba
Fix design time warnings using DesignTimeResources.xaml
jcansdale Jun 29, 2017
cb82ebc
Disable TextBox when comment needs push.
grokys Jun 29, 2017
7d81149
Disable cancel button while submitting comment.
grokys Jun 29, 2017
5045e33
Revert "Fix design time warnings using DesignTimeResources.xaml"
jcansdale Jun 29, 2017
8b22d8a
Revert "Bind glyph background colors using DynamicResource"
jcansdale Jun 29, 2017
325258b
Revert "Refresh glyph background colors when theme changes"
jcansdale Jun 29, 2017
23eb706
Cache the IEditorFormatMap properties not brushes
jcansdale Jun 29, 2017
54c0586
Removed unused method.
grokys Jun 30, 2017
c1094f0
Clarify some doc comments.
grokys Jun 30, 2017
34032b1
PullRequestSession files are immutable.
grokys Jun 30, 2017
e8e94e1
Removed unused method.
grokys Jun 30, 2017
29a903c
Removed non-existent parameter doc.
grokys Jun 30, 2017
3fdc038
Removed unused class.
grokys Jun 30, 2017
e4608e0
Updated doc comments.
grokys Jun 30, 2017
40bda68
Added some doc comments.
grokys Jun 30, 2017
9ad1f6c
Removed unused bitmaps.
grokys Jun 30, 2017
c61ccfa
Use GitHub logo.
grokys Jun 30, 2017
2e4f521
Use ? : not if
jcansdale Jun 30, 2017
3db4494
Move public members to top
jcansdale Jun 30, 2017
2a98831
Remove redundant span assignments
jcansdale Jun 30, 2017
21821b2
Remove redundant comments
jcansdale Jun 30, 2017
41a76f8
Be sure to call GetHttpRemote.
grokys Jul 4, 2017
46011fb
Merge branch 'feature/inline-reviews' of https://github.com/github/Vi…
grokys Jul 4, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .ncrunch/GitHub.InlineReviews.UnitTests.v3.ncrunchproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<ProjectConfiguration>
<Settings>
<CopyReferencedAssembliesToWorkspace>True</CopyReferencedAssembliesToWorkspace>
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
</Settings>
</ProjectConfiguration>
7 changes: 7 additions & 0 deletions .ncrunch/GitHub.InlineReviews.v3.ncrunchproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<ProjectConfiguration>
<Settings>
<InstrumentOutputAssembly>True</InstrumentOutputAssembly>
<PreventSigningOfAssembly>True</PreventSigningOfAssembly>
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
</Settings>
</ProjectConfiguration>
38 changes: 34 additions & 4 deletions GitHubVS.sln
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26403.7
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHub.VisualStudio", "src\GitHub.VisualStudio\GitHub.VisualStudio.csproj", "{11569514-5AE5-4B5B-92A2-F10B0967DE5F}"
ProjectSection(ProjectDependencies) = postProject
{7F5ED78B-74A3-4406-A299-70CFB5885B8B} = {7F5ED78B-74A3-4406-A299-70CFB5885B8B}
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Meta", "Meta", "{72036B62-2FA6-4A22-8B33-69F698A18CF1}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -106,6 +109,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHub.StartPage", "src\Git
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHub.UI.UnitTests", "test\GitHub.UI.UnitTests\GitHub.UI.UnitTests.csproj", "{110B206F-8554-4B51-BF86-94DAA32F5E26}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHub.InlineReviews", "src\GitHub.InlineReviews\GitHub.InlineReviews.csproj", "{7F5ED78B-74A3-4406-A299-70CFB5885B8B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHub.InlineReviews.UnitTests", "test\GitHub.InlineReviews.UnitTests\GitHub.InlineReviews.UnitTests.csproj", "{17EB676B-BB91-48B5-AA59-C67695C647C2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -128,7 +135,6 @@ Global
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Release|x86.ActiveCfg = Release|Any CPU
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Release|x86.Build.0 = Release|Any CPU
{596595A6-2A3C-469E-9386-9E3767D863A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{596595A6-2A3C-469E-9386-9E3767D863A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{596595A6-2A3C-469E-9386-9E3767D863A5}.Debug|x86.ActiveCfg = Debug|Any CPU
{596595A6-2A3C-469E-9386-9E3767D863A5}.Debug|x86.Build.0 = Debug|Any CPU
{596595A6-2A3C-469E-9386-9E3767D863A5}.Publish|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -238,7 +244,6 @@ Global
{E4ED0537-D1D9-44B6-9212-3096D7C3F7A1}.Release|x86.ActiveCfg = Release|Any CPU
{E4ED0537-D1D9-44B6-9212-3096D7C3F7A1}.Release|x86.Build.0 = Release|Any CPU
{B1F5C227-456F-437D-BD5F-4C11B7A8D1A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1F5C227-456F-437D-BD5F-4C11B7A8D1A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1F5C227-456F-437D-BD5F-4C11B7A8D1A0}.Debug|x86.ActiveCfg = Debug|Any CPU
{B1F5C227-456F-437D-BD5F-4C11B7A8D1A0}.Debug|x86.Build.0 = Debug|Any CPU
{B1F5C227-456F-437D-BD5F-4C11B7A8D1A0}.Publish|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -444,6 +449,30 @@ Global
{110B206F-8554-4B51-BF86-94DAA32F5E26}.Release|Any CPU.Build.0 = Release|Any CPU
{110B206F-8554-4B51-BF86-94DAA32F5E26}.Release|x86.ActiveCfg = Release|Any CPU
{110B206F-8554-4B51-BF86-94DAA32F5E26}.Release|x86.Build.0 = Release|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Debug|x86.ActiveCfg = Debug|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Debug|x86.Build.0 = Debug|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Publish|Any CPU.ActiveCfg = Release|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Publish|Any CPU.Build.0 = Release|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Publish|x86.ActiveCfg = Release|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Publish|x86.Build.0 = Release|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Release|Any CPU.Build.0 = Release|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Release|x86.ActiveCfg = Release|Any CPU
{7F5ED78B-74A3-4406-A299-70CFB5885B8B}.Release|x86.Build.0 = Release|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Debug|x86.ActiveCfg = Debug|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Debug|x86.Build.0 = Debug|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Publish|Any CPU.ActiveCfg = Release|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Publish|Any CPU.Build.0 = Release|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Publish|x86.ActiveCfg = Release|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Publish|x86.Build.0 = Release|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Release|Any CPU.Build.0 = Release|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Release|x86.ActiveCfg = Release|Any CPU
{17EB676B-BB91-48B5-AA59-C67695C647C2}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -468,5 +497,6 @@ Global
{DD99FD0F-82F6-4C30-930E-4A1D0DF01D65} = {1E7F7253-A6AF-43C4-A955-37BEDDA01AB9}
{7B835A7D-CF94-45E8-B191-96F5A4FE26A8} = {8A7DA2E7-262B-4581-807A-1C45CE79CDFD}
{110B206F-8554-4B51-BF86-94DAA32F5E26} = {8A7DA2E7-262B-4581-807A-1C45CE79CDFD}
{17EB676B-BB91-48B5-AA59-C67695C647C2} = {8A7DA2E7-262B-4581-807A-1C45CE79CDFD}
EndGlobalSection
EndGlobal
14 changes: 13 additions & 1 deletion src/DesignTimeStyleHelper/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.Imaging" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-15.0.0.0" newVersion="15.0.0.0" />
<bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.TeamFoundation.Controls" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
Expand All @@ -33,6 +33,18 @@
<assemblyIdentity name="Microsoft.VisualStudio.CoreUtility" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
34 changes: 34 additions & 0 deletions src/GitHub.App/Api/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,30 @@ public IObservable<Repository> CreateRepository(NewRepository repository, string
return (isUser ? client.Create(repository) : client.Create(login, repository));
}

public IObservable<PullRequestReviewComment> CreatePullRequestReviewComment(
string owner,
string name,
int number,
string body,
string commitId,
string path,
int position)
{
var comment = new PullRequestReviewCommentCreate(body, commitId, path, position);
return gitHubClient.PullRequest.Comment.Create(owner, name, number, comment);
}

public IObservable<PullRequestReviewComment> CreatePullRequestReviewComment(
string owner,
string name,
int number,
string body,
int inReplyTo)
{
var comment = new PullRequestReviewCommentReplyCreate(body, inReplyTo);
return gitHubClient.PullRequest.Comment.CreateReply(owner, name, number, comment);
}

public IObservable<Gist> CreateGist(NewGist newGist)
{
return gitHubClient.Gist.Create(newGist);
Expand Down Expand Up @@ -239,6 +263,11 @@ public IObservable<Unit> DeleteApplicationAuthorization(int id, [AllowNull]strin
return gitHubClient.Authorization.Delete(id, twoFactorAuthorizationCode);
}

public IObservable<IssueComment> GetIssueComments(string owner, string name, int number)
{
return gitHubClient.Issue.Comment.GetAllForIssue(owner, name, number);
}

public IObservable<PullRequest> GetPullRequest(string owner, string name, int number)
{
return gitHubClient.PullRequest.Get(owner, name, number);
Expand All @@ -249,6 +278,11 @@ public IObservable<PullRequestFile> GetPullRequestFiles(string owner, string nam
return gitHubClient.PullRequest.Files(owner, name, number);
}

public IObservable<PullRequestReviewComment> GetPullRequestReviewComments(string owner, string name, int number)
{
return gitHubClient.PullRequest.Comment.GetAll(owner, name, number);
}

public IObservable<PullRequest> GetPullRequestsForRepository(string owner, string name)
{
return gitHubClient.PullRequest.GetAllForRepository(owner, name,
Expand Down
2 changes: 2 additions & 0 deletions src/GitHub.App/GitHub.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="Models\IssueCommentModel.cs" />
<Compile Include="Models\PullRequestReviewCommentModel.cs" />
<Compile Include="ViewModels\ViewModelBase.cs" />
<None Include="..\..\script\Key.snk" Condition="$(Buildtype) == 'Internal'">
<Link>Key.snk</Link>
Expand Down
2 changes: 2 additions & 0 deletions src/GitHub.App/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[assembly: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", MessageId = "Git", Scope = "resource", Target = "GitHub.Resources.resources")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Scope = "member", Target = "GitHub.Caches.CredentialCache.#InsertObject`1(System.String,!!0,System.Nullable`1<System.DateTimeOffset>)")]
[assembly: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", MessageId = "Git", Scope = "resource", Target = "GitHub.App.Resources.resources")]
[assembly: SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)", Scope = "member", Target = "GitHub.Services.PullRequestService.#CreateTempFile(System.String,System.String,System.String)")]
[assembly: SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)", Scope = "member", Target = "GitHub.Services.PullRequestService.#CreateTempFile(System.String,System.String,System.String,System.Text.Encoding)")]
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
Expand Down
1 change: 1 addition & 0 deletions src/GitHub.App/Models/DisconnectedRepositoryHosts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public DisconnectedRepositoryHost()
public ReactiveList<IAccount> Accounts { get; private set; }
public string Title { get; private set; }
public IAccount User { get; private set; }
[AllowNull]
public IModelService ModelService { get; private set; }

public IObservable<AuthenticationResult> LogIn(string usernameOrEmail, string password)
Expand Down
12 changes: 12 additions & 0 deletions src/GitHub.App/Models/IssueCommentModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace GitHub.Models
{
public class IssueCommentModel : ICommentModel
{
public string Body { get; set; }
public int Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public IAccount User { get; set; }
}
}
6 changes: 3 additions & 3 deletions src/GitHub.App/Models/PullRequestFileModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public PullRequestFileModel(string fileName, string sha, PullRequestFileStatus s
Status = status;
}

public string FileName { get; set; }
public string Sha { get; set; }
public PullRequestFileStatus Status { get; set; }
public string FileName { get; }
public string Sha { get; }
public PullRequestFileStatus Status { get; }
}
}
8 changes: 8 additions & 0 deletions src/GitHub.App/Models/PullRequestModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,14 @@ public string Body
public DateTimeOffset UpdatedAt { get; set; }
public IAccount Author { get; set; }
public IReadOnlyCollection<IPullRequestFileModel> ChangedFiles { get; set; } = new IPullRequestFileModel[0];
public IReadOnlyCollection<ICommentModel> Comments { get; set; } = new ICommentModel[0];

IReadOnlyCollection<IPullRequestReviewCommentModel> reviewComments = new IPullRequestReviewCommentModel[0];
public IReadOnlyCollection<IPullRequestReviewCommentModel> ReviewComments
{
get { return reviewComments; }
set { reviewComments = value; this.RaisePropertyChange(); }
}

IAccount assignee;
[AllowNull]
Expand Down
20 changes: 20 additions & 0 deletions src/GitHub.App/Models/PullRequestReviewCommentModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using NullGuard;

namespace GitHub.Models
{
[NullGuard(ValidationFlags.None)]
public class PullRequestReviewCommentModel : IPullRequestReviewCommentModel
{
public int Id { get; set; }
public string Path { get; set; }
public int? Position { get; set; }
public int? OriginalPosition { get; set; }
public string CommitId { get; set; }
public string OriginalCommitId { get; set; }
public string DiffHunk { get; set; }
public IAccount User { get; set; }
public string Body { get; set; }
public DateTimeOffset CreatedAt { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Reactive;
using System.Threading.Tasks;
using GitHub.Models;
using GitHub.Services;
using GitHub.ViewModels;
using ReactiveUI;

Expand Down Expand Up @@ -71,8 +72,11 @@ public PullRequestDetailViewModelDesigner()
}

public IPullRequestModel Model { get; }
public IPullRequestSession Session { get; }
public ILocalRepositoryModel Repository { get; }
public string SourceBranchDisplayName { get; set; }
public string TargetBranchDisplayName { get; set; }
public int CommentCount { get; set; }
public bool IsLoading { get; }
public bool IsBusy { get; }
public bool IsCheckedOut { get; }
Expand Down
Loading