-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for Pull Request API (#102)
* Adding support for Pull Request API * Updating version, tags and change log.
- Loading branch information
1 parent
3c09630
commit 3864fb5
Showing
12 changed files
with
661 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<!-- #include "./common/header.md" --> | ||
|
||
# Get-VSTeamPullRequest | ||
|
||
## SYNOPSIS | ||
|
||
<!-- #include "./synopsis/Get-VSTeamWorkItem.md" --> | ||
|
||
## SYNTAX | ||
|
||
## DESCRIPTION | ||
|
||
<!-- #include "./synopsis/Get-VSTeamWorkItem.md" --> | ||
|
||
## EXAMPLES | ||
|
||
### -------------------------- EXAMPLE 1 -------------------------- | ||
|
||
```PowerShell | ||
PS C:\> Get-VSTeamPullRequest | ||
``` | ||
|
||
This command returns all the open pull requests for your TFS or Team Services account. | ||
|
||
### -------------------------- EXAMPLE 2 -------------------------- | ||
|
||
```PowerShell | ||
PS C:\> Get-VSTeamPullRequest -ProjectName Demo | ||
``` | ||
|
||
This command returns all the open pull requests for the Demo team project. | ||
|
||
### -------------------------- EXAMPLE 3 -------------------------- | ||
|
||
```PowerShell | ||
PS C:\> Get-VSTeamPullRequest -Id 123 | ||
``` | ||
|
||
This command gets the pull request with an Id of 123. | ||
|
||
## PARAMETERS | ||
|
||
### -ProjectName | ||
|
||
Specifies the team project for which this function operates. | ||
|
||
You can tab complete from a list of available projects. | ||
|
||
You can use Set-VSTeamDefaultProject to set a default project so | ||
you do not have to pass the ProjectName with each call. | ||
|
||
```yaml | ||
Type: String | ||
Required: false | ||
Position: 0 | ||
Accept pipeline input: true (ByPropertyName) | ||
``` | ||
### -Id | ||
Specifies the pull request by ID. | ||
```yaml | ||
Type: String | ||
Aliases: PullRequestId | ||
Accept pipeline input: true (ByPropertyName) | ||
``` | ||
## INPUTS | ||
## OUTPUTS | ||
## NOTES | ||
## RELATED LINKS | ||
[Show-VSTeamPullRequest](Show-VSTeamPullRequest.md) |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!-- #include "./common/header.md" --> | ||
|
||
# Show-VSTeamPullRequest | ||
|
||
## SYNOPSIS | ||
|
||
<!-- #include "./synopsis/Show-VSTeamPullRequest.md" --> | ||
|
||
## SYNTAX | ||
|
||
## DESCRIPTION | ||
|
||
<!-- #include "./synopsis/Show-VSTeamPullRequest.md" --> | ||
|
||
## EXAMPLES | ||
|
||
### -------------------------- EXAMPLE 1 -------------------------- | ||
|
||
```PowerShell | ||
PS C:\> Show-VSTeamPullRequest 3 | ||
``` | ||
|
||
This command will open a web browser with the pull request id of 3. | ||
|
||
### -------------------------- EXAMPLE 2 -------------------------- | ||
|
||
```PowerShell | ||
PS C:\> Show-VSTeamPullRequest -Id 3 | ||
``` | ||
|
||
This command will open a web browser with the pull request id of 3. | ||
|
||
## PARAMETERS | ||
|
||
### -PullRequestId | ||
|
||
Specifies pull request by ID. | ||
|
||
```yaml | ||
Type: Int32 | ||
Aliases: PullRequestId | ||
Required: True | ||
Accept pipeline input: true (ByPropertyName) | ||
``` | ||
## INPUTS | ||
## OUTPUTS | ||
### Team.Release | ||
## NOTES | ||
You can pipe the pull request ID to this function. | ||
## RELATED LINKS | ||
[Get-VSTeamPullRequest](Get-VSTeamPullRequest.md) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Returns one or more open pull requests from your team, project, or Id. |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Opens the pull request in the default browser. |
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
Oops, something went wrong.