-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
81 changed files
with
1,226 additions
and
1,212 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<p class="text-muted"> | ||
Copyright © Pascal Berger and <a href="https://github.com/cake-contrib/Cake.Tfs/graphs/contributors" target="_blank">contributors</a>. | ||
Copyright © Pascal Berger and <a href="https://github.com/cake-contrib/Cake.AzureDevOps/graphs/contributors" target="_blank">contributors</a>. | ||
<br/> | ||
Website generated by <a href="http://wyam.io" target="_blank">Wyam</a> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
--- | ||
Order: 20 | ||
Title: Reading pull requests | ||
Description: Example how to read pull request information using the Cake.Tfs addin. | ||
Description: Example how to read pull request information using the Cake.AzureDevOps addin. | ||
--- | ||
The [Cake.Tfs addin] provides an alias for reading pull request information. | ||
The [Cake.AzureDevOps addin] provides an alias for reading pull request information. | ||
|
||
The following example will read details of a pull request: | ||
|
||
```csharp | ||
#addin "Cake.Tfs" | ||
#addin "Cake.AzureDevOps" | ||
|
||
Task("Read-PullRequest").Does(() => | ||
{ | ||
var pullRequestSettings = | ||
new TfsPullRequestSettings( | ||
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"), | ||
new AzureDevOpsPullRequestSettings( | ||
new Uri("http://myserver:8080/defaultcollection/myproject/_git/myrepository"), | ||
"refs/heads/feature/myfeature", | ||
TfsAuthenticationNtlm()); | ||
AzureDevOpsAuthenticationNtlm()); | ||
|
||
var pullRequest = | ||
TfsPullRequest( | ||
AzureDevOpsPullRequest( | ||
pullRequestSettings); | ||
|
||
Information(pullRequest.TargetRefName); | ||
}); | ||
``` | ||
|
||
[Cake.Tfs addin]: https://www.nuget.org/packages/Cake.Tfs | ||
[Cake.AzureDevOps addin]: https://www.nuget.org/packages/Cake.AzureDevOps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
--- | ||
Order: 30 | ||
Title: Voting for pull requests | ||
Description: Example how to approve or vote for pull requests using the Cake.Tfs addin. | ||
Description: Example how to approve or vote for pull requests using the Cake.AzureDevOps addin. | ||
--- | ||
The [Cake.Tfs addin] provides an alias for approving or voting on pull requests. | ||
The [Cake.AzureDevOps addin] provides an alias for approving or voting on pull requests. | ||
|
||
The following example will approve a pull request on a Azure DevOps Server: | ||
The following example will approve a pull request on an Azure DevOps Server: | ||
|
||
```csharp | ||
#addin "Cake.Tfs" | ||
#addin "Cake.AzureDevOps" | ||
|
||
Task("Vote-PullRequest").Does(() => | ||
{ | ||
var pullRequestSettings = | ||
new TfsPullRequestSettings( | ||
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"), | ||
new AzureDevOpsPullRequestSettings( | ||
new Uri("http://myserver:8080/defaultcollection/myproject/_git/myrepository"), | ||
"refs/heads/feature/myfeature", | ||
TfsAuthenticationNtlm()); | ||
AzureDevOpsAuthenticationNtlm()); | ||
|
||
TfsVotePullRequest( | ||
AzureDevOpsVotePullRequest( | ||
pullRequestSettings, | ||
TfsPullRequestVote.Approved); | ||
AzureDevOpsPullRequestVote.Approved); | ||
}); | ||
``` | ||
|
||
[Cake.Tfs addin]: https://www.nuget.org/packages/Cake.Tfs | ||
[Cake.AzureDevOps addin]: https://www.nuget.org/packages/Cake.AzureDevOps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
Title: Cake.Tfs | ||
Title: Cake.AzureDevOps | ||
NoSidebar: true | ||
NoContainer: false | ||
NoGutter: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Cake.Tfs.Tests.ruleset → src/Cake.AzureDevOps.Tests.ruleset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Cake.Tfs.Tests/ArgumentChecksTests.cs → ....AzureDevOps.Tests/ArgumentChecksTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Cake.Tfs.Tests | ||
namespace Cake.AzureDevOps.Tests | ||
{ | ||
using Xunit; | ||
|
||
|
Oops, something went wrong.