GitHttpClientBase.GetPushesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetPushesAsync(String, String, Nullable<Int32>, Nullable<Int32>, GitPushSearchCriteria, Object, CancellationToken)
[Preview API] Retrieves pushes associated with the specified repository.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>> GetPushesAsync(string project, string repositoryId, Nullable<int> skip = null, Nullable<int> top = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria searchCriteria = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPushesAsync : string * string * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
override this.GetPushesAsync : string * string * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
Parameters
- project
- String
Project ID or project name
- repositoryId
- String
The name or ID of the repository.
- searchCriteria
- GitPushSearchCriteria
Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPushesAsync(String, Guid, Nullable<Int32>, Nullable<Int32>, GitPushSearchCriteria, Object, CancellationToken)
[Preview API] Retrieves pushes associated with the specified repository.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>> GetPushesAsync(string project, Guid repositoryId, Nullable<int> skip = null, Nullable<int> top = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria searchCriteria = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPushesAsync : string * Guid * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
override this.GetPushesAsync : string * Guid * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
Parameters
- project
- String
Project ID or project name
- repositoryId
- Guid
The name or ID of the repository.
- searchCriteria
- GitPushSearchCriteria
Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPushesAsync(Guid, String, Nullable<Int32>, Nullable<Int32>, GitPushSearchCriteria, Object, CancellationToken)
[Preview API] Retrieves pushes associated with the specified repository.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>> GetPushesAsync(Guid project, string repositoryId, Nullable<int> skip = null, Nullable<int> top = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria searchCriteria = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPushesAsync : Guid * string * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
override this.GetPushesAsync : Guid * string * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
Parameters
- project
- Guid
Project ID
- repositoryId
- String
The name or ID of the repository.
- searchCriteria
- GitPushSearchCriteria
Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPushesAsync(Guid, Nullable<Int32>, Nullable<Int32>, GitPushSearchCriteria, Object, CancellationToken)
[Preview API] Retrieves pushes associated with the specified repository.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>> GetPushesAsync(Guid repositoryId, Nullable<int> skip = null, Nullable<int> top = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria searchCriteria = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPushesAsync : Guid * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
override this.GetPushesAsync : Guid * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
Parameters
- repositoryId
- Guid
The name or ID of the repository.
- searchCriteria
- GitPushSearchCriteria
Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPushesAsync(String, Nullable<Int32>, Nullable<Int32>, GitPushSearchCriteria, Object, CancellationToken)
[Preview API] Retrieves pushes associated with the specified repository.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>> GetPushesAsync(string repositoryId, Nullable<int> skip = null, Nullable<int> top = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria searchCriteria = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPushesAsync : string * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
override this.GetPushesAsync : string * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
Parameters
- repositoryId
- String
The name or ID of the repository.
- searchCriteria
- GitPushSearchCriteria
Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPushesAsync(Guid, Guid, Nullable<Int32>, Nullable<Int32>, GitPushSearchCriteria, Object, CancellationToken)
[Preview API] Retrieves pushes associated with the specified repository.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>> GetPushesAsync(Guid project, Guid repositoryId, Nullable<int> skip = null, Nullable<int> top = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria searchCriteria = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPushesAsync : Guid * Guid * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
override this.GetPushesAsync : Guid * Guid * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitPushSearchCriteria * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>>
Parameters
- project
- Guid
Project ID
- repositoryId
- Guid
The name or ID of the repository.
- searchCriteria
- GitPushSearchCriteria
Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.