diff --git a/conda_smithy/cirun_utils.py b/conda_smithy/cirun_utils.py index f393892fc..d6c6fd245 100644 --- a/conda_smithy/cirun_utils.py +++ b/conda_smithy/cirun_utils.py @@ -51,11 +51,14 @@ def add_repo_to_cirun_resource( print( f"Adding repo {owner}/{repo} to resource {resource} with policy_args: {policy_args}" ) + gh = Github(gh_token()) + gh_owner = gh.get_user(owner) + gh_repo = gh_owner.get_repo(repo) response = cirun.add_repo_to_resources( owner, repo, resources=[resource], - teams=[repo], + teams=[team.name for team in gh_repo.get_teams()], policy_args=policy_args, ) print(f"response: {response} | {response.json().keys()}") diff --git a/news/cirun.rst b/news/cirun.rst new file mode 100644 index 000000000..6fc64953e --- /dev/null +++ b/news/cirun.rst @@ -0,0 +1,26 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* The team name for cirun was fixed. Previously the team name passed had + -feedstock in it and also did not support teams as maintainers. + For teams like conda-forge/r, if they are added to a feedstock after + Cirun is configured, the feedstock needs to be reconfigured (#1794). + +**Security:** + +*