1
- use crate :: team_data:: TeamApiClient ;
1
+ use crate :: team_data:: TeamClient ;
2
2
use anyhow:: { anyhow, Context } ;
3
3
use async_trait:: async_trait;
4
4
use bytes:: Bytes ;
@@ -241,7 +241,7 @@ impl User {
241
241
. await
242
242
}
243
243
244
- pub async fn is_team_member < ' a > ( & ' a self , client : & ' a TeamApiClient ) -> anyhow:: Result < bool > {
244
+ pub async fn is_team_member < ' a > ( & ' a self , client : & ' a TeamClient ) -> anyhow:: Result < bool > {
245
245
log:: trace!( "Getting team membership for {:?}" , self . login) ;
246
246
let permission = client. teams ( ) . await ?;
247
247
let map = permission. teams ;
@@ -2014,7 +2014,7 @@ impl<'q> IssuesQuery for Query<'q> {
2014
2014
include_fcp_details : bool ,
2015
2015
include_mcp_details : bool ,
2016
2016
gh_client : & ' a GithubClient ,
2017
- team_api_client : & ' a TeamApiClient ,
2017
+ team_client : & ' a TeamClient ,
2018
2018
) -> anyhow:: Result < Vec < crate :: actions:: IssueDecorator > > {
2019
2019
let issues = repo
2020
2020
. get_issues ( & gh_client, self )
@@ -2030,7 +2030,7 @@ impl<'q> IssuesQuery for Query<'q> {
2030
2030
} ;
2031
2031
2032
2032
let zulip_map = if include_fcp_details {
2033
- Some ( team_api_client . zulip_map ( ) . await ?)
2033
+ Some ( team_client . zulip_map ( ) . await ?)
2034
2034
} else {
2035
2035
None
2036
2036
} ;
@@ -2841,7 +2841,7 @@ pub trait IssuesQuery {
2841
2841
include_fcp_details : bool ,
2842
2842
include_mcp_details : bool ,
2843
2843
gh_client : & ' a GithubClient ,
2844
- team_api_client : & ' a TeamApiClient ,
2844
+ team_client : & ' a TeamClient ,
2845
2845
) -> anyhow:: Result < Vec < crate :: actions:: IssueDecorator > > ;
2846
2846
}
2847
2847
@@ -2854,7 +2854,7 @@ impl IssuesQuery for LeastRecentlyReviewedPullRequests {
2854
2854
_include_fcp_details : bool ,
2855
2855
_include_mcp_details : bool ,
2856
2856
client : & ' a GithubClient ,
2857
- _team_api_client : & ' a TeamApiClient ,
2857
+ _team_client : & ' a TeamClient ,
2858
2858
) -> anyhow:: Result < Vec < crate :: actions:: IssueDecorator > > {
2859
2859
use cynic:: QueryBuilder ;
2860
2860
use github_graphql:: queries;
@@ -3073,7 +3073,7 @@ impl IssuesQuery for DesignMeetings {
3073
3073
_include_fcp_details : bool ,
3074
3074
_include_mcp_details : bool ,
3075
3075
client : & ' a GithubClient ,
3076
- _team_api_client : & ' a TeamApiClient ,
3076
+ _team_client : & ' a TeamClient ,
3077
3077
) -> anyhow:: Result < Vec < crate :: actions:: IssueDecorator > > {
3078
3078
use github_graphql:: project_items:: ProjectV2ItemContent ;
3079
3079
0 commit comments