Skip to content

Testing PR Comments. #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion PullRequestSandbox/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ namespace PullRequestSandbox
{
class Program
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on an old commit.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Program comment

{
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a comment with inline code block

Fenced code block

// Made a change.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need a green glyph

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here's a blue one.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted green!

// Another change
static void Main(string[] args)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line

{
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment from fork.

/// yepyep
//
}
}
}
1 change: 1 addition & 0 deletions PullRequestSandbox/PullRequestSandbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TestClass.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
Expand Down
27 changes: 27 additions & 0 deletions PullRequestSandbox/TestClass.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;

namespace InlineComments
{
class TestClass
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing a comment with markdown

A code block

Header 1

  • A checkbox
  • A checked checkbox

{
public int PropertyWithComment1 { get; set; }
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment 1 here.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Foo

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bar

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Baz

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are there more comments here than on .com?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline HTML snippet:

<!DOCTYPE HTML>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>

public int Property1 { get; }
public int PropertyWithComment2 { get; set; }
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

asdf

public int Property2 { get; }

public void MethodWithComment2()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving a comment.

{
// MethodWithComment2 method contents.
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing a new comment here.


public void Method1()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the right line this time?

{
// Method1 method contents..
}

public void AnotherMethod()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commen on AnotherMethod()

{
// Hard breakfast
}
}
}